🎯

angular-di

🎯Skill

from analogjs/angular-skills

VibeIndex|
What it does
|

Covers Angular v20+ dependency injection using inject(), injection tokens, and provider configuration for service architecture, managing singleton vs scoped services, and understanding the DI hierarchy.

Overview

Angular DI is a Claude Code skill that provides comprehensive guidance for implementing dependency injection in Angular v20+ using the modern inject() function, injection tokens, and provider configuration. It covers service architecture patterns including singleton, component-scoped, and route-level providers, helping AI agents generate properly structured Angular services.

Key Features

  • Modern inject() Function - Use inject() instead of constructor injection for cleaner, more flexible dependency resolution in components and services
  • Provider Scopes - Configure dependencies at root level (singleton), component level (instance per component), or route level (shared within route tree) for precise control
  • Injection Tokens - Create typed injection tokens for values, objects, and factory-provided dependencies using InjectionToken with optional self-providing factories
  • Injectable Services - Build services with @Injectable({ providedIn: 'root' }) using signals for reactive state management
  • Hierarchical DI Patterns - Understand and leverage Angular's dependency injection hierarchy for managing singleton vs scoped services

Who is this for?

This skill is designed for Angular v20+ developers who need to set up service architecture, configure providers at different levels, and use injection tokens for dependency management. It is ideal for teams adopting modern Angular patterns with inject() and signals for reactive, well-structured applications.

πŸ“¦

Same repository

analogjs/angular-skills(10 items)

angular-di

Installation

Vibe Index InstallInstalls to .claude/skills/ - auto-recognized by Claude Code
npx vibeindex add analogjs/angular-skills --skill angular-di
skills.sh Install⚠ Installs to .agents/skills/ - may not be auto-recognized by Claude Code
npx skills add analogjs/angular-skills --skill angular-di
Manual InstallCopy SKILL.md content and save to the path below
~/.claude/skills/angular-di/SKILL.md

SKILL.md

2,436Installs
245
-
Last UpdatedJan 29, 2026

More from this repository9

🎯
angular-component🎯Skill

An Angular v20+ component skill from the analogjs/angular-skills collection, teaching AI coding agents modern standalone component patterns with signal inputs/outputs, OnPush change detection, and native control flow.

🎯
angular-signals🎯Skill

Angular v20+ Signals API best practices for reactive state management, computed values, and effect handling.

🎯
angular-forms🎯Skill

Angular skills for building signal-based forms with Angular v21+'s Signal Forms API, including schema-based validation, two-way binding, and dynamic form patterns.

🎯
angular-routing🎯Skill

Covers Angular routing patterns including lazy loading, route guards, resolvers, nested routes, and navigation strategies for Angular v20+

🎯
angular-http🎯Skill

Covers Angular HttpClient patterns including interceptors, error handling, request/response transformation, and API communication best practices

🎯
angular-directives🎯Skill

Covers Angular directive patterns including custom attribute and structural directives, DOM manipulation, and component behavior extension

🎯
angular-testing🎯Skill

Angular skills for building signal-based forms with Angular v21+'s Signal Forms API, including schema-based validation, two-way binding, and dynamic form patterns.

🎯
angular-tooling🎯Skill

Covers Angular development tooling including Angular CLI, build optimization, testing configuration, and project scaffolding for Angular v20+

🎯
angular-ssr🎯Skill

Angular skills for building signal-based forms with Angular v21+'s Signal Forms API, including schema-based validation, two-way binding, and dynamic form patterns.