angular-di
Master Angular dependency injection using the inject() function, provider scopes, and custom injection tokens.
Install
npx skills add https://github.com/analogjs/angular-skills --skill angular-diStats
| Total installs | 3,439 |
| Weekly installs | 3.4K |
| GitHub stars | 570 |
| First seen | Jan 24, 2026 |
| Source | @analogjs/angular-skills |
Summary
- Use inject() for cleaner dependency declaration in components and services; configure providers at root, component, or route level to control singleton vs instance-per-component behavior
- Create and inject custom tokens for configuration objects, third-party values, and multi-provider collections; supports useValue, useClass, useFactory, and useExisting provider strategies
- Manage injection scope with optional injection, self/skipSelf/host modifiers, and multi-providers for collecting multiple implementations of the same token
- Run async initialization code before app startup using provideAppInitializer; create custom injectors programmatically with createEnvironmentInjector and runInInjectionContext
Tags
Related skills
| Skill | Installs | vs angular-di |
|---|---|---|
| best-practices | 3,568 | +129 |
| vue-jsx-best-practices | 3,275 | -164 |
| angular-routing | 3,750 | +311 |
| angular-directives | 3,416 | -23 |
| coding-standards | 3,461 | +22 |
FAQ
- How many installs does angular-di have?
- angular-di has 3,439 total installs and 3.4K installs this week.
- Where is angular-di hosted?
- angular-di is published by @analogjs/angular-skills at https://github.com/analogjs/angular-skills.
- How many GitHub stars does angular-di have?
- angular-di has 570 GitHub stars.
- When was angular-di first indexed?
- OrangeBot.AI first indexed angular-di on Jan 24, 2026.
- How do I install angular-di?
- Run: npx skills add https://github.com/analogjs/angular-skills --skill angular-di