Answers for "*ngFor="let item of items; let i = index" [attr.data-index]="i" in div"

1

ngfor index

<ul>
    <li *ngFor="let item of items; index as i">
        {{item}}
    </li>
</ul>
Posted by: Guest on July-02-2020

Code answers related to "*ngFor="let item of items; let i = index" [attr.data-index]="i" in div"

Browse Popular Code Answers by Language