Angular v20 Injector InjectFlags Cleanup
/Angular v20 Injector InjectFlags Cleanup
Clean up Angular 20 dependency injection code that still relies on InjectFlags, TestBed.get, or untyped Injector.get usage after an Angular 20 upgrade. Use when strict ProviderToken typing or injection options must be made explicit.
- Author
- janpereira-dev ↗
- Repository
- ngautopilot ↗
- Licence
- MIT
- Last repository change
- 25.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
What it does and when to use it
Clean up Angular 20 dependency injection code that still relies on InjectFlags, TestBed.get, or untyped Injector.get usage after an Angular 20 upgrade. Use when strict ProviderToken typing or injection options must be made explicit.
Original author description
Clean up Angular 20 dependency injection code that still relies on InjectFlags, TestBed.get, or untyped Injector.get usage after an Angular 20 upgrade. Use when strict ProviderToken typing or injection options must be made explicit.
How it works
- Purpose
- When to Use
- When Not to Use
- Required Inputs
- Procedure
- Do
- Do Not
- Review Checklist
- Expected Output
- Exit Criteria
SKILL.md preview
---
id: angular.upgrade.di.angular-v20-injector-injectflags-cleanup
name: Angular v20 Injector InjectFlags Cleanup
description: >
Clean up Angular 20 dependency injection code that still relies on InjectFlags, TestBed.get, or untyped Injector.get usage after an Angular 20 upgrade. Use when strict ProviderToken typing or injection options must be made explicit.
stack:
- Angular
- TypeScript
category: di
status: stable
version: 0.11.0
owner: NgAutoPilot
triggers:
- InjectFlags
- TestBed.get
- Injector.get
- DI cleanup
compatibility:
angular:
min: "20"
---
# Angular v20 Injector InjectFlags Cleanup
## Purpose
Clean up Angular 20 DI code that relies on deprecated injection patterns.
## When to Use
- The app uses `InjectFlags`.
- The app uses `TestBed.get`.
- The app has untyped `Injector.get` usage.
## When Not to Use
- The app does not use deprecated injection patterns.
- The app is still in a version hop.
## Required Inputs
- injection sites
- tests
- string tokens
- custom providers
## Procedure
1. Find deprecated injection patterns.
2. Replace flags with options where supported.
3. Replace `TestBed.get` with `TestBed.inject`.
4. Validate tests.
## Do
- Keep provider typing explicit.
- Review string tokens and custom tokens.
- Validate critical injection paths.
## Do Not
- Do not keep `InjectFlags` in the target slice.
- Do not mix this with the version hop.
## Review Checklist
- [ ] `InjectFlags` are removed.
- [ ] `TestBed.get` is removed.
- [ ] Typed injection works.
- [ ] Tests pass.
## Expected Output
1. DI cleanup summary.
2. Injection API updates.
3. Test result.
## Exit Criteria
- DI risk is explicit.
Versions
The database has no other skills named Angular v20 Injector InjectFlags Cleanup.
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version 34585504afb0 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 3 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100angular-dependency-injection
Configure DI, inject() usage, and providers in Angular. Use when configuring Angular dependency injection, using inject(), or defining providers. - 95angular-testing
Angular testing with TestBed, ComponentFixture, service testing, and HttpTestingController. Covers standalone component testing and signal testing. USE WHEN: user mentions "Angular testing", "TestBed", "ComponentFixture", "Angular unit test", "HttpTestingController", "testing… - 100angular-testing
Write Angular component tests using TestBed, ComponentHarness, and HttpTestingController with proper signal input handling. Use when writing component tests, mocking HTTP calls, or testing signal inputs. - 95angular-dependency-injection
Use when building modular Angular applications requiring dependency injection with providers, injectors, and services. - 90Angular 19 to Angular 20 Upgrade
Upgrade an Angular application from Angular 19.x to Angular 20.x using a controlled major-hop process. Use when the project is ready to move from Angular 19 to Angular 20 and needs explicit handling for TypeScript 5.8+, moduleResolution bundler, testing behavior, DI… - 100angular
Expert Angular assistance covering Signals, Standalone Components, dependency injection, RxJS, and SSR. Use when building enterprise Single Page Applications with modern Angular.