normal ngFor code example
Example: how to loop a number in ngfor
//my.component.ts
counter(i: number) {
return new Array(i);
}
//my.component.html
{{i}}
//my.component.ts
counter(i: number) {
return new Array(i);
}
//my.component.html
{{i}}