3

I am new in NodeJS and I am trying to build an ecommerce application. I have readymade design and all the front end things with angularjs code. If I'm clicking on any menu then the page content changes along with the URL and is working fine but the problem is when I reload that page it shows me 'Not Found' error.

Internally loaded view

enter image description here

On reloading the Page

enter image description here

Note:- Error shows 106 line of app.js file but it simply contains the error printing statement that is "var err = new Error('Not Found');".

Any kind of help is appreciated.
Thanks in advance.

Yash Parekh
  • 1,513
  • 2
  • 20
  • 31

1 Answers1

1

you call the wrong route, the route is not defined on server that's why it gives you 404 error

mirwaleed
  • 69
  • 7
  • https://expressjs.com/en/starter/generator.html personally i follow this structure, i hope it helps you – mirwaleed May 16 '17 at 06:55