I have a set of static angular bootstrap tabs:
<tabset>
<tab heading="Static title" select="remember(0)">Static content</tab>
<tab heading="Another title" select="remember(1)">Static content</tab>
<tab heading="Another title" select="remember(2)">Static content</tab>
</tabset>
I created a function to store which tab was last selected. However, I can't seem to find a way, from the controller, to select a given tab.
The example on the site is with dynamic tabs, created from an array in a repeater. So then something like $scope.tabs[0].active = true; would suffice.
However, these tabs are just markup not an array, and it does not say how (or if) it's possible to select one of these tabs from the controller.
I'd prefer to use static tabs if I can, since I'd rather not use includes.
Thoughts? I forked the example from UI-Bootstrap here.