B
B
bullyy2016-02-11 12:29:49
Angular
bullyy, 2016-02-11 12:29:49

How to display login page from ng-view?

Implemented a user authorization service, when the user is not authorized, he is redirected to the authorization page. This is a regular spa application, it works through ng-view, respectively, the authorization page is displayed in ng-view, and the entire general part (menus, etc.) is visible to the user. What is the right way to hide everything that is not inside ng-view.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2016-02-11
@AMar4enko

The option with a regular router is just to hide it through ngIf It's
easier to do with ui.router, but first you need to "enter" it

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question