angular-components
Build standalone Angular components with Signals inputs, OnPush change detection, Control Flow, and Smart/Dumb patterns. Use when building standalone Angular components, implementing @if/@for control flow, applying OnPush change detection, or implementing Signals in Angular components.
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install multi-language-standards-angular-componentsManual setup by platform
Claude Code
~/.claude/skills/multi-language-standards-angular-components/SKILL.md
Instructions
Angular Components
Priority: P0 (CRITICAL)
Standalone & Structure
- Standalone:
standalone: true. Import all deps inimportsarray. No NgModule. (Angular 20+: standalone default.) - Smart/Dumb Split: Smart (Container) → inject services, manage state. Presentational (Dumb) → accept inputs and emit events via outputs only; no service dependencies.
- Host Bindings: Define in
host: { }on@Component(e.g.,'[class.active]': 'isActive()') — never use @HostBinding/@HostListener. - View Encapsulation: Default
Emulated. UseNonecarefully.
Signals & Change Detection
- OnPush: ALWAYS use
ChangeDetectionStrategy.OnPush. No exceptions. - Signal Inputs:
input.required<T>()orinput<T>()not@Input(). Access as functions:{{ userId() }}. UsebooleanAttribute/numberAttributetransforms. - Signal Outputs:
output<T>()(v17.3+) not@Output() EventEmitter. Two-way binding:model(). - State:
signal()local,computed()derived,effect()side effects only. - Cleanup:
toSignal()(auto-unsubscribes),takeUntilDestroyed(), orDestroyRef. Neversubscribe()without cleanup.
Control Flow
- Use
@if (condition),@for (item of items; track item.id),@switch,@empty { }instead of*ngIf/*ngFor(new control flow syntax, Angular 17+).
Anti-Patterns
- No default CD: OnPush only — default re-checks every component every event.
- No functions in templates:
{{ calculate() }}re-evaluates every cycle →computed()instead. - No manual subscribe:
asyncpipe ortoSignal. Neversubscribe()without cleanup. - No ElementRef mutation: Directives or Renderer2.
- No class inheritance: Compose with Directives and Services.
References
- Standalone Pattern
- Control Flow
Security
Reviews (0)
Related skills
Browse all →More from Multi-Language Standards
View source →More Build skills
Browse category →Frequently asked questions about angular-components
What does the angular-components skill do?
Build standalone Angular components with Signals inputs, OnPush change detection, Control Flow, and Smart/Dumb patterns. Use when building standalone Angular components, implementing @if/@for control flow, applying OnPush change detection, or implementing Signals in Angular components. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the angular-components skill?
Run `npx @skills-hub-ai/cli install multi-language-standards-angular-components` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/multi-language-standards-angular-components/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does angular-components work with?
angular-components runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the angular-components skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use angular-components after installing it?
In Claude Code, type `/multi-language-standards-angular-components` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the angular-components skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.