The_Brink The_Brink - 6 months ago 39
AngularJS Question

loading index.html with node.js and receiving data from the client side in AngularJS

Okay, first off, I am build a web app using AngularJS and node.js. I have the AngularJS part down pretty good, but I can't seem to get the server side working how I want it to. I am using the angular-seed at github ( ) for my project. The project is setup with the web-server.js being in the scripts folder and the index.html is in the app folder. If you need to see what the web-server.js code looks like just go to

  • How can I get the web-server.js, using node.js, to use the index.html file at localhost:3000 instead of the root directory of the web app?

  • How can I, on the server side, send and receive data to the angular side?

Answer Source

Here is a github project created explicitly for people who are the same boat as you.

If you dont want all those things ( Bootstrap / OAuth ) you could go with something simpler like ( which is the inspiration for express-angular ).

Hope this helps.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download