angular-directives

Create Angular attribute, structural, and host directives for reusable DOM behavior.

1|Updated Jul 5, 2025
One-click install
npx skills add https://github.com/kevinchatham/tressi --skill angular-directives-kevinchatham
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: angular-directives
Source: https://github.com/kevinchatham/tressi/tree/main/.agents/skills/angular-directives
Command: npx skills add https://github.com/kevinchatham/tressi --skill angular-directives-kevinchatham

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Angular directives enable reuse and composition of DOM behavior across components, eliminating duplication and improving consistency.

Core Features & Use Cases

  • Attribute Directives: Modify the appearance or behavior of an element.
  • Structural Directives: Implement portals, overlays, and dynamic insertion points.
  • Host Directives & Composition: Combine multiple directives to compose complex behaviors and reusable patterns.
  • Use Case: Build tooltips, focus management, and reactive styling across many components without duplicating logic.

Quick Start

Create and reuse Angular directives to extend element behavior across components.

Frequently Asked Questions about angular-directives

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

FAQPage Schema
How do I create reusable Angular directives for cross-component UI behaviors?

Reusable Angular directives encapsulate DOM behavior enhancements like tooltips and focus management. You create attribute or structural directives to apply consistent UI logic across multiple components, eliminating code duplication and improving frontend consistency.

What is the difference between attribute and structural directives in Angular?

Attribute directives modify the appearance or behavior of an existing element, while structural directives implement portals, overlays, and dynamic insertion points. Both Angular directive patterns enable component composition and reusable DOM behavior without duplicating logic.

How do Angular host directives help compose complex UI behaviors?

Angular host directives combine multiple directives to compose complex behaviors and reusable patterns. By applying host directive composition, you can stack independent UI concerns like reactive styling and focus management onto a single element without rewriting component logic.

Does this Angular directives skill support version 20 directive patterns?

Yes, the skill supports Angular v20+ directive patterns. It covers attribute, structural, and host directives with practical examples and a reference guide, ensuring compatibility with modern Angular frontend development workflows.

When should I use structural directives instead of components for dynamic content?

Use structural directives when you need to implement portals, overlays, and dynamic insertion points across multiple components. They provide reusable DOM behavior for dynamic content insertion without the overhead of creating dedicated component wrappers.

What's the best way to manage focus and dynamic styling across many Angular components?

The best way to manage focus and dynamic styling across Angular components is through reusable directives. By building attribute directives, you apply cross-component UI concerns consistently without duplicating logic in each component's TypeScript code.