Directives & Pipes Priority: P2 (MEDIUM) Principles - Composition : Use hostDirectives: [TooltipDirective] on or decorators to compose behaviors without inheritance. Expose inputs/outputs via hostDirectives: [{ directive: TooltipDirective, inputs: ['text'] }] . - Pure Pipes : Decorate with . Implement PipeTransform with method. Pipes must pure: true (default) to cache results by input reference — Angular only re-runs them when reference changes. not set pure: false unless handling Observables/Arrays that mutate. - Directive Logic : Encapsulate reusable DOM manipulation or behavioral logic in…