Read here: https://www.concretepage.com/angular/...
1. Angular provides Directive Composition API to encapsulate reusable behaviours of directives. It is introduced in Angular 15.
2. The @Directive decorator has hostDirectives property. The @Component decorator inherits hostDirectives property from @Directive. So hostDirectives is available to both the decorators, @Directive as well as @Component.
3. A directive or component configures standalone directives using hostDirectives property and these directives are called host directives. This enables the transitive aggregation of multiple behaviours. We can create a directive that will include the behaviour of those directives configured in hostDirectives and hence we achieve reusability of code.