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>
The "selectThirdTab" function is as follows:
$scope.selectThirdTab = function () { $scope.isThirdActive = true; }
plunker is here: Plunker
First, the first tab is selected, you press the button, and the result is selected by the third button. Now, if you select a different tab, and then click the "Select Third Tab" button again, the third button will not be selected. What's wrong?
source share