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