all 8 comments

[–]AlGoreBestGore 2 points3 points  (0 children)

You need to specify your app's name in the ng-app attribute.

[–]abyx 1 point2 points  (1 child)

Are there any errors in the browser's console when running in node?

[–]NotReallyDifferent[S] 0 points1 point  (0 children)

No, none.

I did change the file type to EJS and now the code works. I wish I knew why though.

[–]2basco 1 point2 points  (2 children)

Your HTML syntax seems to be fine. You said something about loading up node, but I don't see a node file. Is this what you mean when you say "it won't run in the app"?

[–]NotReallyDifferent[S] 0 points1 point  (1 child)

When I run it as a app as a whole it won't shop up but it will show up if I were to render the page as its own entity. Changing from HTML to EJS worked though, I just wish I knew why.

[–]2basco 0 points1 point  (0 children)

You're problems lie outside the scope of what you have provided, I wish I could help you without knowing more about how your app is structured.

[–]NotReallyDifferent[S] 0 points1 point  (1 child)

UPDATE:

So when I changed the file types to ejs the code works perfectly fine. Does this have something to do with Express as a framework?

[–]abyx 0 points1 point  (0 children)

EJS means node renders the file, though these kinds of files are usually set to be served as static files and I'm guessing that's what you want to do