Answer the question
In order to leave comments, you need to log in
How to control output in ng-repeat from another ng-repeat?
There is an array of objects whose properties need to be displayed in the table.
<tr ng-repeat="item in mainData.items">
<td>{{item.name}}</td>
<td>{{item.category}}</td>
<td>{{item.importance}}</td>
<td>{{item.status}}</td>
</tr>
<tr ng-repeat="item in mainData.items">
<td ng-repeat="prop in mainData.itemProps">{{item.prop}}</td>
</tr>
Answer the question
In order to leave comments, you need to log in
How to control output in ng-repeat from another ng-repeat?
<tr ng-repeat="item in mainData.items">
<td ng-repeat="prop in mainData.itemProps">{{item.prop}}</td>
</tr>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question