M
M
Mikhail Moskalev2014-02-28 13:13:49
JavaScript
Mikhail Moskalev, 2014-02-28 13:13:49

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

1 answer(s)
M
Mikhail Moskalev, 2014-02-28
@Mr_Franke

Found a solution. If anyone is interested, here it is .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question