angular pass async pipe value to funciton

JavaScript
<div *ngIf="(match | async) as match" class="team" (click)="addToFavorite(match.id)">
Source

Also in JavaScript: