Is there a way to ng-repeat a defined number of times instead of always having to iterate over an array?
ng-repeat
For example, below I want the list item to show
You can use this example.
Inside controller:
$scope.data = { 'myVal': 33, 'maxVal': 55, 'indexCount': function(count) { var cnt = 10; if (typeof count === 'number') { cnt = count; } return new Array(cnt); } };
Example for select element at the HTML code side:
{{ $index + 1 }}