Answer the question
In order to leave comments, you need to log in
angularjs routing
Good afternoon!
I'm trying to understand Angular and ran into a routing problem in the application.
I need to make it so that if the user is not authorized, he would be thrown to the authorization page. But it is not correct to prescribe an authorization check in all controllers, but I didn’t figure out how to access the service that checks the user’s authorization from app.config and I’m not sure that this is the right solution.
Tell me how to correctly change the routing settings for the entire application under a certain condition.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question