What problem does it solve?
This Skill guides developers in building modern Angular v20+ standalone components that leverage signal-based inputs/outputs, OnPush change detection, host bindings, content projection, and lifecycle hooks, ensuring consistency and maintainability across UI components.
Core Features & Use Cases
- Standalone by default: Create components that are self-contained without NgModule declarations, adhering to Angular v20+ best practices.
- Signals-based inputs/outputs: Use signal-driven data flow for inputs and outputs to enable reactive, type-safe bindings.
- Host bindings and template bindings: Implement dynamic classes, styles, attributes, and events via the host option.
- Content projection patterns: Compose components with projection slots for flexible composition.
- Lifecycle and patterns: Include initialization and cleanup hooks and modern patterns like OnInit and OnDestroy.
Quick Start
Create a minimal Angular 20+ standalone component that exposes a signal-based input and output, uses a host binding, and demonstrates content projection in its template.