What problem does it solve?
This Skill helps developers create modern, standalone Angular components efficiently, adhering to the latest best practices for Angular v20+ and beyond.
Core Features & Use Cases
- Standalone Components: Generates components that are standalone by default.
- Signal Inputs/Outputs: Utilizes Angular signals for reactive inputs and outputs.
- OnPush Change Detection: Implements
ChangeDetectionStrategy.OnPush for performance.
- Host Bindings: Manages host element attributes, classes, and listeners directly.
- Content Projection: Supports content projection for flexible component composition.
- Accessibility: Enforces accessibility standards (WCAG AA, ARIA attributes, keyboard navigation).
- Native Control Flow: Uses
@if, @for, @switch instead of structural directives.
- Use Case: Quickly scaffold a new UI component like a custom button, a data table row, or a modal dialog, ensuring it follows current Angular standards and accessibility guidelines.
Quick Start
Generate a new Angular standalone component named 'UserProfile' with a required 'userId' input and an optional 'isAdmin' boolean input.