My goal is to toggle the visibility of an image tag. When the mouse hovers over it, the image should disappear and when the mouse moves away, the image should reappear.
Here's what I've attempted:
<img ng-mouseover="active = true" ng-mouseleave="active = false"
ng-init="active = true" ng-show="active">
The issue arises when the mouse hovers over the image, causing the ng-mouseleave event to trigger simultaneously, resulting in a blinking loop effect.
I tried resolving this problem using directives, but unfortunately, encountered the same outcome.