I have three static tabs and a button that with ng-click="selectThirdTab()"
<div ng-controller="Ctrl">
<input type="button" value="Select third tab" ng-click="selectThirdTab()" />
<tabset justified="true">
<tab heading="First" active="isFirstActive"></tab>
<tab heading="Second" active="isSecondActive"></tab>
<tab heading="Third" active="isThirdActive"></tab>
</tabset>
</div>
function "selectThirdTab" is as follows:
$scope.selectThirdTab = function () {
$scope.isThirdActive = true;
}
the plunker is here: Plunker
Initially the first tab is selected, you click on the button and the result is the the third button selected. Now if you select an other tab and then click on the button "Select third tab" again, then the third button does not get selected. What's wrong?