0

我有一个 ng 重复:

<label ng-repeat="atp in Keywords | unique:'atp'">
   {{atp}}
</label>

atp中,我得到:

client
animal
zoo
boat

我期望输出

animal
boat
client
zoo

谢谢你的帮助!

4

1 回答 1

1

试试这个:

<label ng-repeat="atp in Keywords | unique:'atp' | orderBy:atp">
   {{atp}}
</label>
于 2014-11-06T11:23:23.727 回答