angular ngfor count to 10 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}}