angular-component

Generates Angular 20+ standalone components with signal inputs, outputs, and OnPush.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/TheSpiciestDev/com-userevals --skill angular-component-thespiciestdev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-component
Source: https://github.com/TheSpiciestDev/com-userevals/tree/main/.agents/skills/angular-component
Command: npx skills add https://github.com/TheSpiciestDev/com-userevals --skill angular-component-thespiciestdev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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.

Frequently Asked Questions about angular-component

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build modern Angular components using signals?

To build modern Angular components using signals, generate standalone components with signal-based inputs and outputs. This approach replaces class-based inputs, utilizing Angular v20+ best practices for reactive UI development and efficient change detection.

What's the best way to refactor class-based Angular inputs to signals?

The best way to refactor class-based Angular inputs to signals is to migrate them into signal-based inputs and outputs. This conversion modernizes standalone components, enabling reactive state management and aligning with current Angular v20+ standards.

Does this Angular component generator support OnPush change detection?

Yes, this Angular component generator supports OnPush change detection. It automatically implements ChangeDetectionStrategy.OnPush alongside signal-based inputs and outputs to optimize rendering performance for standalone components in Angular v20+.

How do I add host bindings and content projection to an Angular standalone component?

To add host bindings and content projection to an Angular standalone component, specify these requirements during generation. The component will manage host element attributes directly and support flexible component composition through projected content.

Can I enforce WCAG accessibility standards when scaffolding Angular components?

Yes, you can enforce WCAG accessibility standards when scaffolding Angular components. The generator enforces accessibility requirements including ARIA attributes and keyboard navigation, ensuring accessible interactive elements for Angular v20+ standalone components.

Why use native control flow like @if and @for instead of structural directives in Angular?

Use native control flow like @if and @for instead of structural directives in Angular to modernize templates. This v20+ best practice replaces older directives, streamlining standalone component UI development and template readability.