I have to refresh header.html after Login in angularjs. When Login is called, the whole page is refreshed and header is initialized but after login only content is loaded not header. What can i do to refresh header.
Index.html
<div class="container-holder" ng-controller="mainCtrl">
<div class="container">
<div ng-include src='"elements/header.html"'></div>
<div ng-view class="clearfix"></div>
</div>
</div>
I have to refresh header.html.
mainCtrl. If that's the case, your header partial will update the bindings automatically.