I had the same problem and this answer helped me figure it out.
I used two variables in the scope: $scope.showTabsInView and $scope.activeTabIndex .
The default values ββare:
$scope.showTabsInView = false; $scope.activeTabIndex = 0;
First I loaded my dynamic tabs , then I set the value to activeTabIndex . Then I changed the value of showTabsInView to true.
<uib-tabset ng-if="showTabsInView" active="activeTabIndex"> <uib-tab data-ng-repeat="tab in tabs" heading="{{tab.title}}">{{tab.content}}</uib-tab> </uib-tabset>
You can simply ignore dynamic tabs and $scope.showTabsInView if your case is not so complicated.
source share