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.
Loading...
Related Quiz
- In RxJS, which operator is commonly used to handle side effects?
- How can Angular's AOT compilation reduce the size of the final JavaScript bundle?
- For a form control in reactive forms, the property that holds the latest validation errors is called ______.
- If you need to clear all views from a ViewContainerRef, you would use the ______ method.
- You are working on a large enterprise application where state management becomes essential. Which library would you consider integrating with Angular for this purpose?