dre
dre

Reputation: 1434

angular-ui bootstrap tabs reorder orderBy

I am using angular and angular-ui-bootstrap tabs. I would live to use the orderBy or be able to dynamically reorder the tabs.

I created this plunkr

<tab ng-repeat="tab in tabs | orderBy:disabled" heading="{{tab.title}}" active="tab.active" disabled="tab.disabled">

Upvotes: 0

Views: 923

Answers (1)

zs2020
zs2020

Reputation: 54524

You missed the quotes. Basically the field name is string and it requires the quotes.

Try this

ng-repeat="tab in tabs | orderBy:'disabled'" 

Upvotes: 2

Related Questions