angular async take 1 code example
Example: angular pass async pipe value to funciton
<div *ngIf="(match | async) as match" class="team" (click)="addToFavorite(match.id)">
<div *ngIf="(match | async) as match" class="team" (click)="addToFavorite(match.id)">