簡體   English   中英

angular-ui bootstrap選項卡重新排序orderBy

[英]angular-ui bootstrap tabs reorder orderBy

我正在使用angular和angular-ui-bootstrap選項卡。 我會活着使用orderBy或能夠動態重新排序選項卡。

我創造了這個plunkr

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

你錯過了報價。 基本上,字段名稱是字符串,它需要引號。

嘗試這個

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM