What problem does it solve?
This Skill streamlines the creation of modern, best-practice Angular standalone components, ensuring consistency and leveraging the latest features for efficient UI development.
Core Features & Use Cases
- Standalone Components: Generates components that are standalone by default, adhering to modern Angular architecture.
- Signal-Based Inputs/Outputs: Implements inputs and outputs using Angular Signals for improved reactivity.
- OnPush Change Detection: Configures components for
ChangeDetectionStrategy.OnPush for performance.
- Host Bindings: Manages host element attributes, classes, and event listeners directly within the
@Component decorator.
- Content Projection: Supports complex content projection patterns for reusable UI elements.
- Lifecycle Hooks: Integrates standard Angular lifecycle hooks like
OnInit and OnDestroy.
- Accessibility: Enforces accessibility best practices, including ARIA attributes and keyboard navigation.
- Native Control Flow: Utilizes Angular's native
@if, @for, and @switch control flow.
- Use Case: Quickly scaffold a new interactive button component with signal inputs for its state, host bindings for styling and accessibility, and outputs for click events, ensuring it follows current Angular standards.
Quick Start
Generate a new Angular standalone component named 'user-profile-card' with signal inputs for 'name' and 'email'.