我有一个ng-repeat:
<label ng-repeat="atp in Keywords | unique:'atp'">
{{atp}}
</label>
在atp
,我得到了:
client
animal
zoo
boat
我期待输出:
animal
boat
client
zoo
感谢您的帮助!
答案 0 :(得分:1)
试试这个:
<label ng-repeat="atp in Keywords | unique:'atp' | orderBy:atp">
{{atp}}
</label>