Reputation: 1434
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
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