Answers for "async pipe in angular ngfor"

1

async pipe ngfor

<ul>
  <li *ngFor="let pizza of pizzas$ | async; index as i">
    {{ i + 1 }}. {{ pizza.name }}
  </li>
</ul>

<!--
 In Ang2+,
 pizza$ is an observable that pushes pizza[] instances
-->
Posted by: Guest on May-25-2021

Browse Popular Code Answers by Language