analogjs avatar

Angular Directives

Solid reference for building Angular directives the modern way with v20+ patterns. Covers attribute directives using the new `input()` function and `host` property instead of decorators, plus structural directives for actual DOM manipulation like portals and lazy rendering. The examples show real scenarios like tooltips, click-outside detection, and keyboard shortcuts rather than toy demos. Smart guidance on using native `@if/@for/@switch` for control flow instead of rolling custom structural directives. The host directive composition examples are especially useful for building reusable behavior mixins across components.

skills.sh installs
5.7K
GitHub stars
587
last updated
Aug 21, 2026

Install

$ npx -y skills add analogjs/angular-skills --skill angular-directives --agent claude-code

Installs into .claude/skills of the current project.

Files

Angular Directives

⚠️ Deprecated. This skill is no longer maintained, and its guidance has been removed rather than left to go stale. The Angular team now publishes official skills at angular/skills — install those instead:

npx skills add https://github.com/angular/skills

To remove these: npx skills remove analogjs/angular-skills

The previous contents of this skill remain available in this repository's git history.

Sponsors

Details

Repository
github.com/analogjs/angular-skills
Category
Frontend Development

More from analogjs/angular-skills

All 10
1pixijs avatarpixijs-html-sourcepixijs/pixijs-skillsUse this skill when rendering live HTML/DOM elements (or frozen snapshots of them) as PixiJS v8 textures via the EXPERIMENTAL HTML-in-Canvas browser APIs. Cover5.5Kskills.sh installs
2callstack avatarreact-native-testingcallstack/react-native-testing-libraryWrite tests using React Native Testing Library (RNTL) v13 and v14 (`@testing-library/react-native`). Use when writing, reviewing, or fixing React Native compone5.5Kskills.sh installs
3forcedotcom avatarexperience-ui-bundle-deployforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory and the task involves deploying, pushing to an org, or post-deploy org setup. Use this skil5.3Kskills.sh installs
4grafana avatarreact-19-plugin-migrationgrafana/skillsMigrate a Grafana plugin to React 19 compatibility. Use when the user asks to update a plugin for React 19, prepare for React 19, fix React 19 compatibility, up4.5Kskills.sh installs
5plannotator avatarhtml-diagramplannotator/effective-htmlDirect-invocation specialist for self-contained HTML diagrams whose layout, notation, and interaction clarify relationships, sequence, topology, state, hierarch4.4Kskills.sh installs
6giuseppe-trisciuoglio avatarnextjs-authenticationgiuseppe-trisciuoglio/developer-kitProvides authentication implementation patterns for Next.js 15+ App Router using Auth.js 5 (NextAuth.js). Use when setting up authentication flows, implementing3.9Kskills.sh installs