AngularJS limitTo filter for ngRepeat on an object (used like a dictionary)

后端 未结 4 1488
独厮守ぢ
独厮守ぢ 2021-01-05 00:56

Is it possible to use limitTo filter on a ngRepeat directive which is repeating the properties of an Object and not items in an Array.

I am

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-05 01:30

    Or you could use 'track by $index'... And your limitTo would be:

    limitTo: $index == 5 (or any value)
    

提交回复
热议问题