← 返回 Skill 列表
extension
分类: 开发与工程API Key 暂未确认

angular-di

在Angular v20+中使用inject()、注入令牌和提供者配置实现依赖注入。用于服务架构,在不同级别提供依赖项,创建可注入令牌,以及管理单例与作用域服务。在服务创建时触发,配置提供者,使用注入令牌或理解DI层次结构。

person作者: jakexiaohubgithub

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.