angular-component

Create Angular standalone components using signal inputs, outputs, and host bindings.

Updated Apr 29, 2026
One-click install
npx skills add https://github.com/iJosueeh/itera-workspace --skill angular-component-ijosueeh
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: angular-component
Source: https://github.com/iJosueeh/itera-workspace/tree/main/.agents/skills/angular-component
Command: npx skills add https://github.com/iJosueeh/itera-workspace --skill angular-component-ijosueeh

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building Angular components with modern v20+ patterns requires knowing signal-based APIs, native control flow, and accessibility rules, and outdated decorator-based habits lead to inconsistent, non-compliant code. ## Core Features & Use Cases - Signal-Based Components: Create standalone components with input(), output(), model(), and computed() instead of decorator-based APIs. - Host Bindings & Accessibility: Configure host bindings, ARIA attributes, and keyboard navigation to meet WCAG AA and AXE requirements. - Advanced Patterns: Reference guide covers view/content queries, dependency injection with inject(), component communication, and @defer lazy loading. - Use Case: When refactoring a legacy component that uses @Input() and *ngIf, apply this Skill to convert it to signal inputs and native @if control flow with OnPush change detection. ## Quick Start Create an Angular standalone toggle component with signal inputs, host bindings, and keyboard accessibility support.

Frequently Asked Questions about angular-component

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

FAQPage Schema
How do I create a standalone component in Angular v20?▼

Define a component with the @Component decorator without setting standalone: true, since components are standalone by default in v20. Use signal inputs via input(), outputs via output(), and set ChangeDetectionStrategy.OnPush.

How to convert @Input decorators to signal inputs in Angular?▼

Replace @Input() with the input() function, using input.required<T>() for mandatory values and input(defaultValue) for optional ones. Add transform options like booleanAttribute or numberAttribute to handle attribute string coercion.

Should I use @HostBinding or the host object in Angular?▼

Use the host object in the @Component decorator instead of @HostBinding and @HostListener decorators. It supports static attributes, class and style bindings, ARIA attributes, and event listeners in one declarative place.

Does Angular still support *ngIf and *ngFor structural directives?▼

Modern Angular favors native control flow blocks: @if, @for with track expressions, and @switch. These replace *ngIf, *ngFor, and *ngSwitch and work without importing CommonModule directives.

How do I implement two-way binding with signal inputs?▼

Use the model() function, which creates both an input and an output for two-way binding with [(value)] syntax. Call value.set() or value.update() inside the component to emit changes to the parent.

What accessibility requirements apply to Angular interactive components?▼

Interactive components must pass AXE checks, meet WCAG AA standards, include proper ARIA attributes like role and aria-checked, support keyboard navigation for Enter and Space keys, and maintain visible focus indicators.