AI AGENT ADDONS

Angular Directives

analogjs/angular-skills

Angular custom directives let you change how elements look and behave. You can create reusable pieces of code that add highlighting, tooltips, or button styles. This skill covers attribute directives that modify an element, host directives that combine behaviors, and more.

You will learn to write directives that listen to events like clicks or keyboard shortcuts. You can also add and remove CSS classes or styles. The examples use Angular v20+ with modern signals and the host property instead of older decorators.

Note that for control flow like if and loops, you should use the native @if, @for, and @switch. Do not build custom structural directives for that. Use this skill to extend element behavior in a clean and reusable way.

Add Angular Directives skill to your workflow

Global

mkdir -p ~/.claude/skills/angular-directives

Project

mkdir -p .claude/skills/angular-directives

Source Repository

Stars
596
Forks
70
Watchers
596
License
MIT
Last Push
4 months ago
Created
6 months ago