I am currently working with a set of Bootstrap nav pills in my navigation bar. The 'ng-init' code in my Angular script sets the 'dateState' to 'past' on page load. However, I have noticed that the 'Past Events' nav pill is not highlighted when the page first loads. I have to manually click on each nav pill to see their 'active' highlight. Is there a way for me to automatically set the active state of the nav pill based on what is specified in the 'ng-init', without hard coding the 'active' state?
<ul class="nav nav-pills pull-right" ng-init="dateState='past'">
<li><a href ng-click="dateState = 'live'">Live!</a></li>
<li><a href ng-click="dateState = 'past'">Past Events</a></li>
<li><a href ng-click="dateState = 'future'">Future Events</a></li>
</ul>