What problem does it solve?
Encapsulates DOM manipulation, UI behavior, and composition patterns into reusable Angular v20+ directives so teams avoid duplicated imperative code, improve accessibility, and simplify testing and maintenance.
Core Features & Use Cases
- Attribute Directives: Modify element appearance, class and style toggles, disabled/aria attributes, and event wiring for buttons, inputs, and interactive controls.
- Structural & Portal Patterns: Provide portals, lazy render, template outlets, and conditional render strategies for overlays, modals, and dynamic insertion points.
- Host Directives & Composition: Compose behaviors like focus, ripple, elevation, and disableable using hostDirectives, exportable APIs, and host bindings for clean component APIs.
- Observers & Performance: Integrate IntersectionObserver, ResizeObserver, and efficient effect-driven updates for lazy loading, infinite scroll, and resize-aware UI.
- Accessibility & Events: Keyboard shortcut handling, ARIA attribute management, and event outputs for robust, accessible interactive components.
Quick Start
Create an Angular v20 attribute directive that highlights an element with a configurable color and include a usage example.