angular-components

Build and refactor Angular components using signals, OnPush, and content projection.

1|Updated Feb 11, 2026
One-click install
npx skills add https://github.com/jander99/skills --skill angular-components
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-components
Source: https://github.com/jander99/skills/tree/main/skills/angular-components
Command: npx skills add https://github.com/jander99/skills --skill angular-components

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Developing Angular UI components often involves verbose wiring of inputs and outputs, boilerplate state management, and inconsistent lifecycle handling. This skill provides a structured approach to create, refactor, and optimize components using signals, content projection, and OnPush change detection to improve maintainability and performance.

Core Features & Use Cases

  • Build components using signals for inputs, outputs, and two-way binding with models
  • Apply smart/presentational patterns to separate concerns, improve testability, and facilitate reuse
  • Leverage content projection with ng-content, view queries, and lifecycle hooks for robust UI composition
  • Use OnPush change detection and computed signals to minimize re-renders and enhance performance
  • Use this skill when creating, debugging, or refactoring Angular components, especially for complex UIs

Quick Start

Scaffold an Angular component using signals, then optimize it with OnPush and content projection.

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 components using signals and OnPush change detection?

To build Angular components with signals and OnPush change detection, you structure inputs, outputs, and two-way bindings using signal-based models. This minimizes re-renders and replaces manual state management with computed signals for optimized performance.

What is the best way to implement smart and presentational component patterns in Angular?

Implementing smart and presentational component patterns in Angular separates state management from UI rendering. This approach improves testability, clarifies data flow, and facilitates component reuse across complex user interfaces.

How does content projection work with view queries and lifecycle hooks in Angular components?

Content projection in Angular uses ng-content to render external content within component templates. Combined with view queries and lifecycle hooks, it manages projected DOM elements and ensures robust UI composition ordering.

When do I need OnPush change detection with computed signals in Angular?

You need OnPush change detection with computed signals in Angular when optimizing component performance for complex UIs. This combination ensures components only re-render when signal dependencies change, reducing unnecessary DOM updates.

Why does my Angular component lifecycle ordering fail when using content projection?

Angular component lifecycle ordering issues with content projection often stem from querying projected content before initialization. Using appropriate lifecycle hooks and view queries ensures projected content resolves correctly before rendering.