<nav class="navbar navbar-default"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" ng-if="currentUser"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">anarcho</a> </div> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1" ng-if="currentUser"> <ul class="nav navbar-nav"> <li><a href="#apps">Apps</a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li class="nav-divider"></li> <li><a href="#" ng-controller="AuthCtrl" ng-click="logout()">Logout <b>{{ currentUser.name }}</b></a></li> </ul> </div> </div> </nav>