Answers for "angular loop number of times"

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
1

ng for until number

<li *ngFor="let number of [0,1,2,3,4]">{{number}}</li>
Posted by: Guest on December-01-2020
1

ngfor set max number of times

*ngFor="let item of canforgensFeed | slice:0:10;"
Posted by: Guest on June-05-2020

Code answers related to "angular loop number of times"

Browse Popular Code Answers by Language