angular-component

Generate Angular v20+ standalone components with signal-based inputs and outputs.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/pkoka888/server-infra-templates --skill angular-component-pkoka888
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-component
Source: https://github.com/pkoka888/server-infra-templates/tree/main/.kilo/skills/marketplace/angular-component
Command: npx skills add https://github.com/pkoka888/server-infra-templates --skill angular-component-pkoka888

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides clear patterns and best practices for building and refactoring Angular v20+ components to use signal-based inputs and outputs, OnPush change detection, and host object bindings, removing ambiguity and inconsistent patterns across projects while improving accessibility and maintainability.

Core Features & Use Cases

  • Signal-driven inputs and outputs: Convert class-based @Input/@Output patterns to signal-based input, output, and model APIs for predictable reactivity.
  • Component composition & accessibility: Enforce host object bindings, ARIA attributes, keyboard interactions, content projection, and AXE/WCAG AA compliance for interactive widgets.
  • Lifecycle and performance: Recommend OnPush change detection, afterNextRender/afterRender patterns, inject-based DI, defer loading, and computed values for efficient rendering.
  • Use Case: Create an accessible user-card or toggle component that accepts signal inputs, emits typed outputs, projects header/footer content, and passes automated accessibility checks.

Quick Start

Generate a standalone Angular v20+ component that uses signal inputs and outputs, applies OnPush change detection, includes host bindings for ARIA and keyboard interactions, and emits a selected output.

Frequently Asked Questions about angular-component

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

FAQPage Schema
How do I create modern Angular components using signal-based inputs and outputs?

Modern Angular components use signal-based input, output, and model APIs for predictable reactivity. You generate standalone components that apply OnPush change detection, host object bindings for ARIA attributes, and inject-based dependency injection to ensure consistent reactive component APIs.

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

Refactoring class-based inputs to signals involves converting @Input and @Output decorators to signal-based input, output, and model APIs. This shift provides predictable reactivity, enforces OnPush change detection, and removes inconsistent patterns across Angular v20+ projects.

How do you implement OnPush change detection with host bindings in Angular v20+?

OnPush change detection with host bindings in Angular v20+ is implemented by using signal-based inputs and host object bindings for attributes and events. This combination ensures efficient rendering and automatically satisfies OnPush requirements without manual change detection calls.

Can I build accessible interactive widgets using Angular signals that pass WCAG compliance?

Yes, building accessible interactive widgets with Angular signals involves enforcing host object bindings, ARIA attributes, and keyboard interactions. This approach ensures your components meet WCAG/AXE accessibility requirements and pass automated accessibility checks.

Does this Angular component pattern support content projection and lifecycle hooks?

Yes, this standalone component pattern fully supports content projection for header and footer templates, alongside lifecycle hooks. It recommends afterNextRender and afterRender patterns to handle rendering efficiently within the OnPush change detection strategy.

When should I use computed values and defer loading in Angular signal components?

Use computed values to derive state reactively from signal inputs and use defer loading to optimize component rendering performance. These patterns are recommended for efficient rendering and managing lifecycle operations within modern Angular standalone components.