I have a complex object that I wish to display and edit in my page.
More specifically for my actual case, I have an object that has a <string, array>
pair, where array
is actually a collection of objects with various <string, int>
pairs.
I try to iterate over this complex structure like this:
<div data-ng-repeat="(key, table) in TestData">
<h3>{{key}}</h3>
<table class="responsive-table">
<tbody>
<tr data-ng-repeat="row in table">
<td data-ng-repeat="(label, value) in row" data-title="label">
<div>
<input data-ng-model="TestData[key][?][label]" data-ng-readonly="isEditable(label)" data-ng-change="show()" />
</div>
</td>
</tr>
</tbody>
</table>
</div>
There seems to be no way for me to find what value I should use in my model because I cant get my exact item in the structure inside the second repeat.
Is there a way to achieve what I want?