I am writing Angular2 App using RC5.
When AppComponent load, I want application to request config file using http and and once its loaded I want app to navigate to the route specified?
How can I achieve that ?
There is 'canActivate' property on each route, but I would see that it has more to do with if I want to do something every time user navigate to new route. Mostly used for authentication purpose, where you want only few routes to be protected with Authentication but in my case I would like to load configuration when AppComponent load. Not on every route activation or navigation.
Hope I made my self clear what I am trying to achieve.