So I've been trying to figure this out for a while and I see a post similar to this but unanswered, so I'll try posting this but with a plunkr to show as an example.
So the issue is that on load, I notice that the ui-tab is always set to the Add Tab button. What I want to do is have the first element in ui-tab ng-repeat to be active and not the static Add Tab button.
<uib-tabset active="activeTabIndex">
<uib-tab ng-repeat="tab in tabs" heading="{{tab.title}}">Some content</uib-tab>
<uib-tab heading="Add a tab" ng-click="addTab()" >Add a tab</uib-tab>
</uib-tabset>
https://plnkr.co/edit/XrYSKLdyN1cegfcdjmkz?p=preview
How can I achieve this? I've been at it for a bit but still have no clue on how to resolve this.
Thanks,
Guess you may like this fixed plunker,
A little tricky by create your own
directiverather than use an extra<uib-tab>to achieve there.Sample code: