@HostListner in Angular | Directives | Angular 12+
30.6 هزار بار بازدید -
3 سال پیش
-
HostListener Decorator listens to the
HostListener Decorator listens to the DOM event on the host element. It also provides a handler method to run when that event occurs. The host element is the element on which we attach our directive or component.
In this lecture, let's understand the use of @HostListner decorator with an example.
In this lecture, let's understand the use of @HostListner decorator with an example.
3 سال پیش
در تاریخ 1400/11/21 منتشر شده
است.
30,695
بـار بازدید شده