angular using a loop for a component code example
Example: angular loop
<li *ngFor="let a of fakeArray; let index = index">Something {{ index }}</li>
<li *ngFor="let a of fakeArray; let index = index">Something {{ index }}</li>