how to pass results of async pipe to template function 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)">