Using Angular 2, I want to duplicate a line in a template multiple times. Iterating over an object is easy, *ngFor="let object of objects". However, I
*ngFor="let object of objects"
You can do both in one if you use index
index
{{myIndex}}
With this you can get the best of both worlds.