Unique AngularJS filter for multiple ng-repeat values

How can I make sure the full string is unique in AngularJS?

 <tr ng-repeat="service in services" > 

I know about the existing unique filter that was discussed here. However, this only explains how a unique filter is on a single column. I would like to do this for multiple columns. For example:

 <tr ng-repeat="service in services | unique:['category','type','quantity'] > 
+4
source share

Source: https://habr.com/ru/post/1624535/


All Articles