angular-di
π―Skillfrom analogjs/angular-skills
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
InjectionTokenwith 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)
Installation
npx vibeindex add analogjs/angular-skills --skill angular-dinpx skills add analogjs/angular-skills --skill angular-di~/.claude/skills/angular-di/SKILL.mdSKILL.md
More from this repository9
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 v20+ Signals API best practices for reactive state management, computed values, and effect handling.
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.
Covers Angular routing patterns including lazy loading, route guards, resolvers, nested routes, and navigation strategies for Angular v20+
Covers Angular HttpClient patterns including interceptors, error handling, request/response transformation, and API communication best practices
Covers Angular directive patterns including custom attribute and structural directives, DOM manipulation, and component behavior extension
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.
Covers Angular development tooling including Angular CLI, build optimization, testing configuration, and project scaffolding for Angular v20+
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.