I do the application on an angular (not on the second). There is a navigation that is on every page and there is a rest that depends on the address.

<nav>...</nav> <div ng-view> ... </div> 

Everything is fine, when you click on the links in the menu, the main part is redrawn, but the navigation remains. But suddenly there is a need to make a page where I do not need navigation. How to be?

What should I do when I need to, when navigating through the pages, one element remains static (for example, a player), but there are pages on which it is not needed?

  • ng-if , ng-show / ng-hide - hide unnecessary elements - Grundy

1 answer 1

Use ui-router instead of classic - it allows you to make nested views.

Or take out the common elements in the external controller and provide in it (perhaps through services) the logic of displaying these elements.