How can I use ng-repeat like for in Javascript?
example:
Text
I want to iterate wit
To repeat 7 times, try to use a an array with length=7, then track it by $index:
b=[]
create an empty Array «b»,
.length=7
set it's size to «7»,
&&b
let the new Array «b» be available to ng-repeat,
track by $index
where «$index» is the position of iteration.
ng-bind="$index + 1"
display starting at 1.
To repeat X times:
just replace 7 by X.