ngfor 3 times code example Example: ngfor iterate n times <ul> <li *ngFor="let number of [0,1,2,3,4]">{{number}}</li> </ul>