Looking for a way to utilize $index within an ng-repeat to dynamically incorporate an index into my ng-model. Struggling to format it correctly.
Currently, this is the closest I've come, but the single quotes are still present:
<tr ng-model="arrayOfArrays" ng-repeat="x in exes">
<th>{{x}}</th>
<td ng-model="arrayOfArrays['{{$index}}'][0]">{{}}</td>
<td ng-model="arrayOfArrays['{{$index}}'][1]">{{}}</td>
<td ng-model="arrayOfArrays['{{$index}}'][2]">{{}}</td>
</tr>
Desired end result:
<tr ng-repeat="x in exes">
<th>{{x}}</th>
<td ng-model="arrayOfArrays[0][0]">{{}}</td>
<td ng-model="arrayOfArrays[1][1]">{{}}</td>
<td ng-model="arrayOfArrays[2][2]">{{}}</td>
</tr>
Seeking advice on how to structure the ng-model name to include the incremental value of $index without unwanted single quotes appearing as part of the ng-model name.