Covers Angular v20+ dependency injection patterns with modern inject() syntax instead of constructor injection. Shows provider configuration at root, component, and route levels, plus injection tokens for configuration and multi-providers for collecting services. Includes practical examples of optional injection, scoped services, app initializers, and environment injectors. Good reference when you need to understand DI hierarchy or set up complex service architecture. The multi-provider examples are especially useful for plugin systems or collecting validators.

skills.sh installs
5.8K
GitHub stars
587
last updated
Aug 21, 2026

Install

$ npx -y skills add analogjs/angular-skills --skill angular-di --agent claude-code

Installs into .claude/skills of the current project.

Files

Angular Dependency Injection

⚠️ Deprecated. This skill is no longer maintained, and its guidance has been removed rather than left to go stale. The Angular team now publishes official skills at angular/skills — install those instead:

npx skills add https://github.com/angular/skills

To remove these: npx skills remove analogjs/angular-skills

The previous contents of this skill remain available in this repository's git history.

Sponsors

Details

Repository
github.com/analogjs/angular-skills
Categories
Frontend Development, Code Review & Quality

More from analogjs/angular-skills

All 10
1affaan-m avatarui-demoaffaan-m/eccRecord polished UI demo videos using Playwright. Use when the user asks to create a demo, walkthrough, screen recording, or tutorial video of a web application.5.8Kskills.sh installs
2julianoczkowski avatarfrontend-designjulianoczkowski/designer-skillsBuild distinctive, production-grade frontend interfaces with high design quality, guided by named aesthetic philosophies. Use when building components, pages, o5.6Kskills.sh installs
3forcedotcom avatarexperience-ui-bundle-custom-app-generateforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory and the task involves creating or configuring a Custom Application for hosting a UI bundle 5.3Kskills.sh installs
4analogjs avatarangular-toolinganalogjs/angular-skillsUse Angular CLI and development tools effectively in Angular v20+ projects. Use for project setup, code generation, building, testing, and configuration. Trigge5.3Kskills.sh installs
5forcedotcom avatarexperience-ui-bundle-file-upload-generateforcedotcom/sf-skillsMUST activate when the project contains a uiBundles/*/src/ directory and the task involves uploading, attaching, or dropping files. Use this skill when adding f5.2Kskills.sh installs
6jeffallan avatarreact-native-expertjeffallan/claude-skillsBuilds, optimizes, and debugs cross-platform mobile applications with React Native and Expo. Implements navigation hierarchies (tabs, stacks, drawers), configur5.2Kskills.sh installs