Hi,
at application startup time I need to get some configuration data from the server, e.g. via $http, in order to successfully setup the client side routing, I have to problems:
a) How to inject $http in the app config handler? it seems to accept only providers, so an $httpProvider, but then a need the concrete service;
b) After issuing the http request I need to wait for the promise to resolve before moving on with the configuration: how to?
Cheers,
.m
Thanks, in the end I opted for the second option.
.m