In a directive, the ________ decorator is used to get a reference to the host element.

  • @Directive
  • @HostBinding
  • @HostListener
  • @Injectable
In a directive, the @HostBinding decorator is used to get a reference to the host element, allowing you to access and modify its properties.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *