Answers for "index in for of loop angular"

1

angular 7 for loop index ts

for (let i = 0; i < 3; i++) {
  console.log ("Block statement execution no." + i);
}
Posted by: Guest on April-21-2020
1

ngfor index

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

Browse Popular Code Answers by Language