ng-repeat not working over collections that contains dupes

前端 未结 3 787
渐次进展
渐次进展 2020-12-18 21:45

The following code is not working because the collection contains dupes:

I think that

3条回答
  •  [愿得一人]
    2020-12-18 22:17

    The Angular Filter 3rd party filer contains a 'unique' filter that will give you just the unique entries in your collection.

    https://github.com/a8m/angular-filter

    Usage:

    collection | unique: 'property'

提交回复
热议问题