I am using a hostlistener in a directive to detect \"blur\"- and \"keyup\"-events. Now I need to detect changes in the input-element the directive sits on. I tried
I wanted an answer showing all the ones like this:
document:keydown.escape
within the context of this kind of snippet in Angular:
import { HostListener} from '@angular/core';
@HostListener('document:keydown.escape', ['$event'])
onKeydownHandler(event: KeyboardEvent) {
}