angular async pipe for single value 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)">