For a directive to modify the value of a host property, you would use the ______ decorator.

  • ElementRef
  • HostBinding
  • Input
  • Output
For a directive to modify the value of a host property, you would use the HostBinding decorator. HostBinding allows you to bind the value of a directive property to a host element's property, effectively modifying the host element's behavior or appearance. This is useful for creating dynamic and interactive custom directives in Angular.
Add your answer
Loading...

Leave a comment

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