I have a span child in a div.
In my div, I have a mouseover event, when I hover over span , my event triggers.
Simple code:
<div (mouseover)="showOverlay($event, FooBar)" (mouseleave)="showOverlay($event, FooBar)"> <span>{{ someDataHere }}</span> </div> public showOverlay($event, op, element): void { op.toggle($event, element); $event.preventDefault(); }
What do I want to show my overlay when on a child, how do I achieve this?
source share