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-directivesAbout 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
Angular Component
Create modern Angular standalone components following v20+ best practices. Use for building UI components with signal-based inputs/outputs, OnPush...
by analogjs
Angular Signals
Implement signal-based reactive state management in Angular v20+. Use for creating reactive state with signal(), derived state with computed(), dep...
by analogjs
Angular Forms
Build signal-based forms in Angular v21+ using the new Signal Forms API. Use for form creation with automatic two-way binding, schema-based validat...
by analogjs
Angular Routing
Implement routing in Angular v20+ applications with lazy loading, functional guards, resolvers, and route parameters. Use for navigation setup, pro...
by analogjs
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh