I am writing an app and I would like to have dynamic navbar. I created two separate partials with navbar for logged and guest user. In my index.html I created section where the navbar will be.
<div class="navbar navbar-fixed-top" ng-controller="NavbarCtrl">
<div class="navbar-inner">
</div>
<!-- /navbar-inner -->
</div>
Navbar controller should decide with one partial should be rendered. I check there if user is authenticated or not. But I don't know how to render partial from controller. Thanks for all answers and sorry for my english.