angular hostlistener in component code example Example: import hostlistener angular import { HostListener } from '@angular/core'