How to group and display the values in angular js

前端 未结 1 758
野趣味
野趣味 2021-01-16 17:14

I have created a scope function like this

$scope.sample = [
   {\'SUPNAME\':\'AAA\',\'SUPCODE\':\'22671\',\'SLIPNO\':\'18384\',\'DESG\':\'1\',\'iv\':\'1\'},         


        
相关标签:
1条回答
  • 2021-01-16 18:00

    i tried to create a Codepen for your case

    grouped Codepen

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

    Hope this helps

    0 讨论(0)
提交回复
热议问题