Sunday, 14 May 2017

Tying together angular routing module to node.js server

I had a question on how to tie together my angular module to my node server so that I would be able to render correct angular pages.

My server page is here https://github.com/simonlaww/test/blob/master/server.js

and my angular module page is located here https://github.com/simonlaww/test/blob/master/public/js/routes.js

I know the way I'm setting up my server is incorrect especially in relation to the routes file specifically and I have no clue how to tie the server together with the angular module. Any help would be great! Thanks.

(Formatting was making it hard to submit so I just posted links to the github file)



via Simon Law

No comments:

Post a Comment