ngfor iterate n times code example
Example 1: ngfor set max number of times
*ngFor="let item of canforgensFeed | slice:0:10;"
Example 2: ngfor iterate n times
<ul>
<li *ngFor="let number of [0,1,2,3,4]">{{number}}</li>
</ul>
*ngFor="let item of canforgensFeed | slice:0:10;"
<ul>
<li *ngFor="let number of [0,1,2,3,4]">{{number}}</li>
</ul>