What problem does it solve?
Manage and standardize dependency injection across Angular v20+ applications to avoid inconsistent service lifetimes, scattered configuration, and fragile testing setups.
Core Features & Use Cases
- Provides patterns for using inject() and injectable services to simplify service access and immediate initialization.
- Explains provider scopes including root singletons, component-scoped instances, and route-level providers for modular architectures.
- Covers creating and providing injection tokens, multi providers, provider types (useClass, useValue, useFactory, useExisting), app initializers, environment injectors, and testing overrides.
- Use Case: configure a root API_URL token, implement component-local state services for isolated UI features, and aggregate validators with multi providers while supporting test-time provider overrides.
Quick Start
Use the angular-di skill to configure a root-provided API_URL token, a component-scoped service, and an HTTP interceptor for your Angular v20+ app.