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?

plunkr

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

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -