How to use Captured phase of @HostListener

1.1k Views Asked by At

I want to use captured phase of @HostListener.

@HostListener('document:keydown.escape', ['$event']) onKeydownHandler(event: KeyboardEvent) {
    console.log("key pressed");
  }

Above code use default(bubble phase). One of the case I want to use captured phase, please help me, how to use captured phase of @HostListener.

0

There are 0 best solutions below