angular async pipe access property 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)">