Answer the question
In order to leave comments, you need to log in
How does routing work in angular2 + express?
I'm learning routing in angular2, before that I worked with Express. I learned how to set the necessary paths, how to set a 404 error if there is no such path. In general, I did the same thing before, but only in Express. I'm interested in how they will generally interact with each other in terms of routing if I have a MEAN stack, for example. Is it enough to set the paths only in angular, or will I have to do something else in Express later?
Answer the question
In order to leave comments, you need to log in
How do you even plan to use express ? The MEAN stack implies that your backend is just a REST API, if I'm not mistaken. Therefore, all your requests to youhost.com/api/, for example, go to express and there it resolves routes, and all other requests go to the client application and resolve angular there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question