I am trying to execute multiple ng-repeat so that I can access a third level array in my json and display in a table but can’t get this working

I am trying to nest ng-repeat but looks like I am not doing it correctly.
I need all the lineItem in the json to be displayed.

Since, json value I am trying to display is a 3rd level array, I tried nested
ng-repeat but does not work.

    <table border="1" width="100%">
  <tr>
    <th>Id</th>
    <th>materialNumber</th>
    <th>quantity</th>
  </tr>
  <tbody ng-repeat="subConfig in values.subConfigs.subConfig">
    <tr ng-repeat="lineItem in subConfig.lineItems.lineItem">
         <td></td>
         <td></td>
          <td></td>
    </tr>
  </tbody>
</table>

here is jsfiddle I tried:

Source: AngularJS



from Angular Questions https://angularquestions.com/2017/10/17/i-am-trying-to-execute-multiple-ng-repeat-so-that-i-can-access-a-third-level-array-in-my-json-and-display-in-a-table-but-cant-get-this-working/
via @lzomedia #developer #freelance #web #lzomedia.com

Comments

Popular posts from this blog

ng-show doesn’t work correct with value boolean

Using PHP and MySQL data to generate PDF letters like in MS Word mailmerge functionality - development

ng-include of inline SVG does not display gradient except in Chrome