SKILL5.7K installs588

Angular Directives

Create custom directives in Angular v20+ for DOM manipulation and behavior extension. Use for attribute directives that modify element behavior/appearance, structural directives for portals/overlays, and host directives for composition. Triggers on creating reusable DOM behaviors, extending element functionality, or composing behaviors across components. Note - use native @if/@for/@switch for control flow, not custom structural directives.

Type
Skill
Author
analogjs
GitHub stars
588
Installs
5.7K
Last updated
August 6, 2026

Install

npx skills add https://github.com/analogjs/angular-skills --skill angular-directives

About this skill

Covers writing custom directives in Angular v20 and later: attribute directives that change element behavior or appearance, structural directives for portals and overlays, and host directives for composition. Aimed at Angular developers building reusable DOM behaviors. It notes that native @if, @for, and @switch should handle control flow instead of custom structural directives.

Summary written with AI assistance from the project's public description.


Categories


More from analogjs


Similar Skills