My question is about angular routing. In fact I work on SPA application and the templateUrl of the first page depends on user roles (this information I have it in the user service). As I cannot inject services in app.config how can I get the use roles information in this part to decide which url to return?
It means for the same route .when('/') I have two or more templateUrl depends on user roles