How to use mouseover and mouseout in Angular 6

后端 未结 8 1040
既然无缘
既然无缘 2020-12-14 00:09

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

8条回答
  •  庸人自扰
    2020-12-14 00:40

    Hide Show

    and if you want to use in *ngFor then assign the object value of hover data and then check its id and show hover info/icon or anything like that:-

     
    Hover Text Normal Text

    in TS File

      hoverData!:Data|null;
    
      hoverCard(d: Data|null){
        this.hoverData = sCatg;
      }
    

提交回复
热议问题