Can ng-repeat be used to create a grid of consecutive numbers?
One way to generate a grid is by using two ng-repeats in this manner:
<table>
<tr ng-repeat="c in [1, 2, 3]">
<td ng-repeat="r in [1, 2, 3]">
{{c * r}}
</td>
</tr>
</table>
This code snippet produces the following output:
1 2 3
2 4 6
3 6 9
However, the desired output is:
1 2 3
4 5 6
7 8 9
Is there an alternative angular directive that would be more appropriate for achieving this result?