angular on hover code example
Example 1: angular element onhover
<div
(mouseenter)="myMethod()"
(mousedown)="myMethod()"
(mouseup)="myMethod()"
></div>
Example 2: angular 11 on hover
<div (mouseover)="changeText=true" (mouseout)="changeText=false">