Directive Composition API
Explain how the Directive Composition API lets a component apply another directive's behavior to itself without the consumer adding it manually.
The Directive Composition API, introduced in Angular 15, lets a component declare a hostDirectives array in its metadata, applying one or more directives directly to that component's host element automatically — without requiring whoever uses the component to remember to add the directive themselves in their template. This addresses a real composition problem: before this API, if you wanted every button in your design system to also get tooltip behavior or a ripple effect, you either had to build that behavior into the button component's own code (duplicating it if other components needed it too) or ask every consumer to remember to add appTooltip alongside app-button in their templates.
It's like a car coming from the factory with heated seats and lane-assist already built in as standard equipment, rather than expecting every driver to separately install those features themselves after buying the base model.