angular-components

Standardize Angular v20+ component and directive TypeScript files with signals-based patterns.

9|Updated Jan 18, 2025
One-click install
npx skills add https://github.com/TheNordicOne/ngx-formbar --skill angular-components-thenordicone
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-components
Source: https://github.com/TheNordicOne/ngx-formbar/tree/main/.claude/skills/angular-components
Command: npx skills add https://github.com/TheNordicOne/ngx-formbar --skill angular-components-thenordicone

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves inconsistent Angular component code quality by giving clear, v20+ focused rules for architecture, templates, and member structure so your components stay predictable and maintainable.

Core Features & Use Cases

  • Standalone-first component architecture: Enforces modern component structure (no NgModules, OnPush, template guidance) suited for Angular v20+.
  • Signals-driven inputs/outputs: Standardizes input(), output(), and computed() usage for derived state.
  • Template and binding guardrails: Prevents common performance and readability pitfalls (no *ngIf/*ngFor, no ngClass/ngStyle, strict template constraints).

Quick Start

Use this skill when editing your .component.ts file to refactor it into a standalone Angular v20+ component that follows the required decorator, signals, template, and binding conventions.

Frequently Asked Questions about angular-components

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

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

To build Angular v20 components using signals, use standalone-first architecture with input(), output(), and computed() patterns for derived state, ensuring OnPush change detection and strict template control flow.

What is the best way to structure reactive Angular component inputs and outputs?

The best way to structure reactive Angular component inputs and outputs is using the signals-driven input() and output() APIs alongside computed() for derived state, replacing outdated property decorators and binding styles.

How do I migrate Angular templates to the new control flow syntax?

To migrate Angular templates to the new control flow syntax, replace structural directives like *ngIf and *ngFor with strict template control flow rules, and remove ngClass or ngStyle to avoid readability and performance pitfalls.

Does this Angular component architecture require standalone components without NgModules?

Yes, this Angular component architecture requires standalone-first components without NgModules. It enforces modern component structure suited for Angular v20+, including OnPush change detection and explicit template guidance.

Why should I use computed() instead of methods for derived Angular signal state?

You should use computed() instead of methods for derived Angular signal state because it standardizes reactive state management, ensuring components remain predictable and maintainable without outdated binding styles.

What outdated Angular APIs should I avoid when refactoring component TypeScript files?

When refactoring component TypeScript files, avoid outdated Angular APIs including NgModules, property decorators for inputs and outputs, structural directives like *ngIf, and ngClass or ngStyle bindings.