1<ul>
2 <li *ngFor="let item of items; let i = index" [attr.data-index]="i">
3 {{item}}
4 </li>
5</ul>
1<li *ngFor="let user of users; index as i; first as isFirst">
2 {{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
3</li>
1
2 <li *ngFor="let item of items; index as i; trackBy: trackByFn">...</li>
3
1
2 content_copy
3
4 <li *ngFor="let user of users; index as i; first as isFirst">
5 {{i}}/{{users.length}}. {{user}} <span *ngIf="isFirst">default</span>
6</li>
7