I just fought for something like that. In fact, I almost mistakenly concluded that static tabs cannot be changed programmatically. But they can be.
<tabset>
<tab heading="Tab 1" ng-attr-active="tabs[0].active">
Tab 1 content
</tab>
<tab heading="Tab 2" ng-attr-active="tabs[1].active">
Tab 2 content
</tab>
<tab heading="Tab 3" ng-attr-active="tabs[2].active">
Tab 3 content
</tab>
</tabset>
<button ng-click="make_tab3_active()">Make Tab 3 Active </button>
In javascript you need
$scope.tabs = [{active: true}, {active: false}, {active: false}];
$scope.make_tab3_active = function() {
$scope.tabs[2].active = true;
}
- . - . , , 2 , .
, : https://github.com/angular-ui/bootstrap/issues/611