Sol 1
<table>
<tr ng-repeat="x in [1,2,3,4,5]">
<td>abc</td>
</tr>
</table>
Sol 2
or create an empty array at the end and use it here, as in laravel
$scope.newarr = new Array(5);
In angular
<table>
<tr ng-repeat="x in newarr track by $index">
<td>abc</td>
</tr>
</table>
source
share