I have an object I'm trying to iterate through and having trouble nesting the ng-repeats
$scope.report_data = {
data [
system_0: [
0: "string",
1: 435,
2: "another value"
]
],
headers [
0: [
0:"title"
1: "CHA"
]
]
}
I'm trying to build a table with the headers as th's and each piece of data is mapped to the headers.
What I have right now is
<table>
<thead>
<tr>
<th ng-repeat="header in report_data.headers">{{ header.0 }}</th>
</tr>
</thead>
<tbody>
<tr>
<td ng-repeat="system in report_data.data">
<span ng-repeat="_item in system">{{ _item }}</span>
</td>
</tr>
</tbody>
<table>
But I'm not able to iterate over each item in each system and add it as a column. The error I'm receiving is Error: [ngRepeat:dupes]
What's the best way to iterate over nested arrays?