Is there a way to manually run the ng-repeat function a specific number of times without passing an array parameter? I attempted to hardcode the number in the ng-repeat attribute, but it didn't work as expected.
<h1 ng-repeat="x in 20">{{sumofTwendy(($index}})</h1>
My next approach was to create a dummy array in the controller with a length of 20 and use that array in the ng-repeat.
$scope.data=[];
$scope.data.length=20;
<h1 ng-repeat="x in data">{{sumofTwendy(($index}})</h1>
However, this method also did not work as intended.
Is there a way to execute ng-repeat a specific number of times without passing array values? I'm looking for a solution in either Angular 1 or Angular 2.
If you have a solution, please let me know.