header.template.html 967 B

12345678910111213141516171819
  1. <nav class="navbar navbar-default" role="navigation" ng-controller="Header">
  2. <div class="container-fluid">
  3. <div class="navbar-header">
  4. <a class="navbar-brand" href="#">AngularJS</a>
  5. </div>
  6. <div id="navbar" class="navbar-collapse collapse in" aria-expanded="true" aria-hidden="false">
  7. <ul class="nav navbar-nav">
  8. <li ng-class="{active: currentMenuItem === '/'}"><a href="#/">Home</a></li>
  9. <li ng-class="{active: currentMenuItem === '/books'}"><a href="#/books">Books</a></li>
  10. <li ng-class="{active: currentMenuItem === '/authors'}"><a href="#/authors">Authors</a></li>
  11. </ul>
  12. <ul class="nav navbar-nav navbar-right">
  13. <li ng-if="!isLogged()" ng-class="{active: currentMenuItem == '/login'}">
  14. <a href="#/login">Authorization</a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. </nav>