Skip to content Skip to sidebar Skip to footer

How To Group And Display The Values In Angular Js

I have created a scope function like this $scope.sample = [ {'SUPNAME':'AAA','SUPCODE':'22671','SLIPNO':'18384','DESG':'1','iv':'1'}, {'SUPNAME':'AAA','SUPCODE':'22671','SLI

Solution 1:

i tried to create a Codepen for your case

grouped Codepen

<tableclass="table table-striped"><tr><td>{{data1}}</td><td>{{data2}}</td></tr><trng-repeat="item in filteredsample = (sample | filter:{ SUPNAME: 'AAA'})"></tr><ulng-repeat="thing in filteredsample"><listyle = "float:left; margin:20px">DESG VALUE {{$index}} = {{thing.DESG}}</li></ul></div>

Hope this helps

Post a Comment for "How To Group And Display The Values In Angular Js"