1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

How to use mouseover and mouseout in Angular 6

Discussão em 'Angular' iniciado por Nikita Gupta, Outubro 20, 2024.

  1. Nikita Gupta

    Nikita Gupta Guest

    I have this older Angular code which works but not in the latest version of Angular 6.

    <div ng-mouseover="changeText=true" ng-mouseleave="changeText=false" ng-init="changeText=false">
    <span ng-hide="changeText">Hide</span>
    <span ng-show="changeText">Show</span>
    </div>


    How do i make this work for Angular 6? I understand I have to use (mouseover) and (mouseout) but I couldn't implement it successfully.

    Continue reading...

Compartilhe esta Página