The HostListener decorator allows a directive to listen to events on its host element.
We’ll do this by decorating a function on the component with the @HostListener() decoration.
We’ll do this by decorating a function on the component with the @HostListener() decoration.
No comments:
Post a Comment