angular-component

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

Updated Jun 28, 2026
One-click install
npx skills add https://github.com/412181-HerediaLara/ScaffoldingBE-FE --skill angular-component-412181-heredialara
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: angular-component
Source: https://github.com/412181-HerediaLara/ScaffoldingBE-FE/tree/main/FE/.agents/skills/angular-component
Command: npx skills add https://github.com/412181-HerediaLara/ScaffoldingBE-FE --skill angular-component-412181-heredialara

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Building Angular components with modern v20+ patterns requires moving away from legacy decorators like @Input, @HostBinding, and structural directives, and this Skill provides the exact patterns and code templates to do it correctly. ## Core Features & Use Cases - Signal-Based Components: Create standalone components with signal inputs, outputs, model-based two-way binding, and computed values. - Modern Template Syntax: Apply native control flow (@if, @for, @switch), host object bindings, content projection, and @defer lazy loading. - Accessibility Compliance: Build interactive components that pass AXE checks and meet WCAG AA standards with proper ARIA attributes and keyboard navigation. - Use Case: When refactoring a legacy Angular component that uses @Input decorators and *ngIf directives, use this Skill to convert it to signal inputs and native control flow following v20+ conventions. ## Quick Start Create an Angular standalone component for a user card with signal inputs, an output event, and OnPush change detection.

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 ChangeDetectionStrategy.OnPush, signal inputs via input(), and outputs via output().

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 for attribute coercion.

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

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

Can I use *ngIf and *ngFor in Angular v20 templates?▼

No, use native control flow blocks instead: @if/@else for conditionals, @for with a track expression for loops, and @switch for multi-branch logic. These replace the legacy structural directives entirely.

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

Use the model() function, which creates both an input and an output automatically. Parents bind with [(value)] syntax, and the child updates the value with this.value.set(newValue).

What accessibility requirements apply to Angular interactive components?▼

Components must pass AXE checks, meet WCAG AA standards, include proper ARIA attributes like role and aria-checked, support keyboard navigation via keydown handlers, and maintain visible focus indicators.