I wrote a loop that creates names along with icons.
My goal is to make the icon appear only when it is hovered over.
<div class="elm" *ngFor="let element of callWorkflowData?.jobsList">
<mat-card (mouseover)="hover=true" (mouseleave)="hover=false">{{element}}
<mat-icon [ngClass]="hover?'show-icon':'hide-icon'" ng aria-hidden="false" aria-label="Example home icon">add</mat-icon>
</mat-card>
</div>
Currently, the icon shows up on all cards in the list when I hover over just one element.
My intention is for the icon to only display on the element being hovered over.