Answers for "how to access hover & active property in nativeElement in directive"

0

how to access hover & active property in nativeElement in directive

@HostListener('mouseover')
  onMouseOver() {
    this.backgroundColor = '#fff';
  }

  @HostListener('mouseout')
  onMouseOut() {
    this.backgroundColor =  '#000';
  }
Posted by: Guest on January-17-2021

Browse Popular Code Answers by Language