'ng-repeat' How to get the `unique` values

前端 未结 4 795
遇见更好的自我
遇见更好的自我 2020-12-10 04:13

Using an array, I am trying to filter and show the unique information in the list. For that I use the angular inbuild filter method.

4条回答
  •  爱一瞬间的悲伤
    2020-12-10 04:57

    The unique filter you are probably attempting to use comes from AngularUI, so you need to include it:

    
    

    and add it as module dependency:

    var app = angular.module('plunker', ['ui.filters']);
    

提交回复
热议问题