Is AngularUI's unique AngularJS filter outdated?

I want to use a unique filter in the ngOptions part for selection, but I get this error Unknown provider: uniqueFilterProvider <- uniqueFilterI read different questions and I know that I need to add this module to my application, but I think they are outdated, since all links go to these pages http://angular-ui.imtqy.com/#modules , and this https://github.com/angular-ui/angular-ui-OLDREPO/blob/master/modules/filters/unique/unique.js

I could use a second link, but I prefer to use a newer version, because the link says OLD-REPO, which is a new version of this function in the Angular interface or implemented in AngularJS

I use angularJS-1.4.8

+4
source share
1 answer

I suggest you use a library ngLodashthat has various filtering / sorting methods for arrays and objects. See lodash documentation

Check out the method _.uniq().

You can use this method to pre-filter the list of parameters and then use the filtered list in ng-options

0
source

All Articles