What problem does it solve?
Configures and standardizes Angular dependency injection patterns, route-level providers, and code-splitting strategies to reduce boilerplate and errors in module setup.
Core Features & Use Cases
- Inject() function usage: Replace constructor injection with inject() wherever possible to simplify lifecycle handling.
- InjectionToken for repository ports: Define domain-level tokens to decouple domain and infrastructure layers.
- Route-level providers: Register providers at the route level to scope dependencies to feature modules and improve tree-shaking.
- Lazy loading and routing patterns: Use loadComponent and loadChildren to enable code-splitting and modular architecture.
- Infrastructure provider organization: Centralize provider lists (queries, use cases, API clients, repositories) for predictable wiring.
Quick Start
Apply these patterns by wiring route-level providers and infrastructure providers in your feature module using loadComponent or loadChildren.