Read object field from observable using async pipe Read object field from observable using async pipe typescript typescript

Read object field from observable using async pipe


You don’t need to map values into their own individual observable. Instead you can simply wrap your observable in parentheses along with async pipe, and then reach fields inside the object returned by observable.

Try:

<tr *ngFor="let student of ($students | async).items">  <td>{{student.id}}</td>  <td>{{student.name}}</td>  <td>{{student.description}}</td></tr>