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>
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
No comments:
Post a Comment