angular loop until a number code example Example: ng for until number <li *ngFor="let number of [0,1,2,3,4]">{{number}}</li>