I am trying to use bootstrap tab with angularjs & have added ng-click to set active class on tab but its not happening, below is my code:
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" ng-class="{ 'active': tab === 1 }"><a href="#email" aria-controls="email" role="tab" data-toggle="tab" ng-click="tab = 1">Email</a></li>
<li role="presentation" ng-class="{ 'active': tab === 2 }"><a href="#phone" aria-controls="phone" role="tab" data-toggle="tab" ng-click="tab = 2">Phone</a></li>
<li role="presentation" ng-class="{ 'active': tab === 3 }"><a href="#username" aria-controls="username" role="tab" data-toggle="tab" ng-click="tab = 3">Username</a></li>
</ul>
tab's value is not changing and that's why the particular class is not getting applied.