angularjs - angular ui bootstrap ng-repeat tabs -
how can use ng-repeat in angular bootstrap ?
// styling not work <uib-tabset active="activepill" vertical="true" type="pills"> <span ng-repeat="tab in tabs track $index"> <uib-tab index="$index" heading="{{ tab.title }}">{{ tab.content }}</uib-tab> </span> </uib-tabset>
what missing? should ng-repeat go preserve styling?
use index="{{$index}}" instead of index="$index". see this
<uib-tabset active="activepill" vertical="true" type="pills"> <span ng-repeat="tab in tabs track $index"> <uib-tab index="{{$index}}" heading="{{ tab.title }}">{{ tab.content }}</uib-tab> </span> </uib-tabset>
Comments
Post a Comment