angular-di
OfficialMaster Angular DI with inject() and tokens.
Software Engineering#Angular#providers#dependency-injection#inject#EnvironmentInjector#InjectionToken#hierarchical-di
AuthorROU-Technology
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Angular dependency injection can become verbose and hard to manage at scale. This Skill introduces the modern Angular v20+ DI ergonomics using inject(), tokens, and provider configuration to simplify wiring dependencies across components, services, and routes.
Core Features & Use Cases
- Use inject() to access services directly in components and standalone functions without constructor boilerplate.
- Define and consume InjectionTokens for configuration, feature flags, and cross-cutting concerns.
- Configure provider scopes (root, component, route) and hierarchical injection to control lifetimes and testability.
- Leverage advanced patterns like EnvironmentInjector and runInInjectionContext for dynamic DI and testing.
Quick Start
Create a minimal Angular 20+ app and demonstrate the inject API by defining a simple service and a component that uses inject() to obtain the service.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: angular-di Download link: https://github.com/ROU-Technology/ng-utils/archive/main.zip#angular-di Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.