I have a simple question it is possible to add a css class inside ng-mouseenter="myclass" that is when I pass the maouse by the image that a css class applies.
Greetings.
I have a simple question it is possible to add a css class inside ng-mouseenter="myclass" that is when I pass the maouse by the image that a css class applies.
Greetings.
I leave you an example, it's super easy:
.red {
background-color: red;
}
.italic {
font-style: italic;
color: black;
}
<div ng-app>
<div
class="italic"
ng-class="{red: hover}"
ng-mouseenter="hover = true"
ng-mouseleave="hover = false">
Test 1 2 3.
</div>
</div>
Greetings