I am trying to use the variable i get from ng-repeat to accesses an object inside the scope.
My template is:
<tr>
<td style="font-weight: bold">term</td>
<td ng-repeat="block in blocks">{{ data.block.term }}</td>
<td>{{ total.term }}</td>
</tr>
My scope variables are:
$scope.blocks = ['A', 'B', 'C'];
$scope.data = {'A': {'term': 0, 'term2': 7}, 'B': {'term': 2, 'term2': 3}, 'C': {'term': 5, 'term2': 14}};