Answers for "*ngFor="let item of list""

7

ngfor index

<ul>
    <li *ngFor="let item of items; let i = index" [attr.data-index]="i">
        {{item}}
    </li>
</ul>
Posted by: Guest on February-26-2020

Code answers related to "*ngFor="let item of list""

Browse Popular Code Answers by Language