【问题标题】:angular-ui bootstrap tabs reorder orderByangular-ui 引导选项卡重新排序 orderBy
【发布时间】:2013-09-28 04:29:45
【问题描述】:

我正在使用 angular 和 angular-ui-bootstrap 选项卡。我愿意使用 orderBy 或能够动态重新排序选项卡。

我创建了这个plunkr

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

【问题讨论】:

    标签: angularjs tabs angular-ui-bootstrap


    【解决方案1】:

    你错过了引号。基本上,字段名称是字符串,它需要引号。

    试试这个

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

    【讨论】:

    • 感谢您指出语法错误。我在plunkr 中尝试过,但它仍然没有订购标签。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-21
    相关资源
    最近更新 更多