what I'm trying to do is using the ng-repeat
directive to iterate some kind of 2 dimensional in angularjs
I have a long list, that I want to display in an html table with lets say 4 per row.
I'm currently using a somekind workaround to do this by doing so:
<table>
<tr>
<td data-ng-repeat="x in my.list.slice(0, 4)">
{{x}}
</td>
</tr>
<tr>
<td data-ng-repeat="x in my.list.slice(4, 8)">
{{x}}
</td>
</tr>
<tr>
<td data-ng-repeat="x in my.list.slice(8, 12)">
{{x}}
</td>
</tr>
<tr>
<!-- -->
</tr>
</table>
I'm wondering if there is somekind of itterating on <tr>
but having everytime 4 * <td>
?