I want to use a loop count in angular2. To execute a command ten times. *ngFor work like foreach
<div *ngFor="item in items"> Repeatative Item content </div>
but i want same thing like this
<div *ngFor="i=0;i<10;i++"> Repeatative Item content </div>
edit: I've found the answer . It works for me.