I have a list of groups populated from a database and use ngFor to iterate through in the html.
<mat-card *ngFor="let group of groups" >
<mat-card-title #group > {{group}} </mat-card-title>
</mat-card>
I would like the #group to be the value of the group, not hardcoded. That way I can have another component to scroll to the different template variables.
How can I do this? Thanks.