Answer the question
In order to leave comments, you need to log in
How to parse a two-dimensional array into a table using ng-repeat?
The server returns an array in json, data is accessed as follows: data[item][property]
Only certain columns need to be formatted as a table:
<table>
<tr ng-repeat="item in data">
<td>{{item[0]}}</td>
<td>{{item[1]}}</td>
<td>{{item[3]}}</td>
<td>{{item[7]}}</td>
</tr>
</table>
Answer the question
In order to leave comments, you need to log in
<table>
<tr ng-repeat="item in data">
<td ng-repeat="value in item">{{value}}</td>
</tr>
</table>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question