angular: how to loop for numbers? May 9, 2023 by Tarik Maybe the simplest solution without any TS code: <div *ngFor="let item of [].constructor(10); let i = index"> {{i}} </div>