angular-component

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

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/Blotch-Smart-Frames/Board --skill angular-component-blotch-smart-frames
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: angular-component
Source: https://github.com/Blotch-Smart-Frames/Board/tree/main/packages/client/.claude/skills/angular-component
Command: npx skills add https://github.com/Blotch-Smart-Frames/Board --skill angular-component-blotch-smart-frames

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Angular v20+ introduced signal-based APIs and standalone components, but many developers still write legacy patterns like decorator-based inputs, ngIf directives, and constructor injection. This Skill provides the correct modern patterns so generated components follow current Angular best practices. ## Core Features & Use Cases - Signal-Based Components: Generate components using input(), output(), model(), computed(), and viewChild/contentChild signal queries instead of legacy decorators. - Modern Template Syntax: Enforce native control flow (@if, @for, @switch), direct class/style bindings, host metadata objects, and NgOptimizedImage usage. - Accessibility Compliance: Build interactive components that pass AXE checks, meet WCAG AA standards, and support keyboard navigation with proper ARIA attributes. - Use Case: When refactoring an old Angular component with @Input() decorators and *ngIf templates, use this Skill to convert it to signal inputs, host bindings, and native control flow. ## 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 Angular v20+. Use ChangeDetectionStrategy.OnPush and declare dependencies in the imports array.

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. Access values by calling the signal, and use computed() for derived state instead of getters.

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

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

Does Angular still support ngIf and ngFor directives?▼

Angular supports them, but modern code should use native control flow blocks: @if, @for with track expressions, and @switch. These offer better type checking, performance, and require no CommonModule imports.

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

Use the model() function instead of input() to create a two-way bindable signal. Parents bind with [(value)] syntax, and the child updates the value by calling this.value.set(newValue), which automatically emits the change.

What accessibility requirements apply to custom Angular 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.