I have the HTML
<mat-card *ngFor="let shift of employer.shifts">
<mat-card-content>
<div *ngIf="getShiftLocation(shift);">
<div>{{ getShiftLocation(shift)['title'] }}</div>
<div>{{ getShiftLocation(shift)['phone'] }}</div>
<div>{{ getShiftLocation(shift)['manager'] }}</div>
</div>
</mat-card-content>
</mat-card>
There's the function getShiftLocation(shift) which returns Location object's field value
The question is: is there any way to set the whole Location object in this HTML in order I could use it?
For example:
<pre>
<div #location="getShiftLocation(shift)">
<div>{{location.title}}</div>
</div>
</pre>
Maybe the other way as well.