Answers for "angular to loop through a number"

0

how to loop a number in ngfor

//my.component.ts

counter(i: number) {
    return new Array(i);
}
//my.component.html

<li *ngFor='let in of counter(5) ;let i = index'>{{i}}</li>
Posted by: Guest on May-05-2020
0

angular loop

<li *ngFor="let a of fakeArray; let index = index">Something {{ index }}</li>
Posted by: Guest on March-31-2021

Code answers related to "angular to loop through a number"

Browse Popular Code Answers by Language