Answers for "how to loop in angular html"

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
0

angular loop

<li *ngFor="let a of fakeArray; let index = index">Something {{ index }}</li>
Posted by: Guest on March-31-2021
0

angular javascript for loop

content_copy
      
      <h2>Products</h2>

<div *ngFor="let product of products">
</div>
Posted by: Guest on May-10-2021

Browse Popular Code Answers by Language