[AngularJS] Problem when loading routes from DB dynamically

2018-11-12 Thread Zlatko Đurić
The problem might be that your routes are not available at resolve time. You can go load the things later, but it doesn't matter any more, the router already failed. You could put the router loader config into app initializer though. Then routes would get loaded before the app starts. Can't

[AngularJS] Problem when loading routes from DB dynamically

2018-11-12 Thread Jose Cristhian Padilla Pinto
Hi guys, please your help with a problem I have. I'm loading routes from a DB through a web service and everything work as expected when using links to those routes. But when I refresh the page or I write directly the url in the adress bar the route does not work, why? 1) In the