Category: angularjs-ng-repeat

how to group the object list in an array based on its matching property values in Angularjs?

I have an array of object as follow var arrlst =[ {id:[1],Name:’john’,Country:[‘US]’,Unit:[‘AB’],Department:[‘Dep1′]}, {id:[2],Name:’John’,Country:[‘UK’],Unit:[‘AB’],Department:[‘Dep1′]}, {id:[3],Name:’John’,Country:[‘AB’],Unit:[‘AB’],Department:[‘Dep2′]}, {id:[4],Name:’Angel’,Country:[‘CN’],Unit:[‘CD’],Department:[‘Dep1′]}, {id:[5],Name:’John’,Country:[‘US’],Unit:[‘AB’],Department:[‘Dep1′]}, {id:[6],Name:’John’,Country:[‘US’],Unit:[‘CD’],Department:[‘Dep3′]}, {id:[7],Name:’Angel’,Country:[‘CN’],Unit:[‘CB’],Department:[‘Dep1′]}, {id:[8],Name:’Angel’,Country:[‘CN’],Unit:[‘CC’],Department:[‘Dep1′]}, {id:[9],Name:’Mike’,Country:[‘IN’],Unit:[‘CC’],Department:[‘Dep2’]},

Continue reading