How to set bootstrap navbar active class with Angular JS?

Posted by Editorial Staff | Updated on

Want to set bootstrap navbar active class with Angular JS? A very elegant way is to use ng-controller to run a single controller outside of the ng-view:

Include the below code in controllers.js file:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers