mcpField
A
angular-injector

angular-injector

github.com/oguzhan18Development7165 installsUpdated 31w ago
Repository

About angular-injector

A reference skill for Angular developers covering dependency injection patterns in Angular 21, including inject(), Injector.get, and EnvironmentInjector.

Key features

  1. 01Inject dependencies with inject()
  2. 02Retrieve services using Injector.get
  3. 03Use EnvironmentInjector

Use cases

  1. 01Inject a service in a component
  2. 02Create an Injector and retrieve a provider

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/oguzhan18/angular-ecosystem-skills --skill angular-injector

After installing, type/angular-injectorin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

references/discussions/
_INDEX.md
references/docs/
_INDEX.md
references/issues/
_INDEX.md
references/releases/
_INDEX.md

Details

From the project README

Angular Injector

Version: Angular 21 (2025) Tags: Injector, DI, Providers

References: Injector API

Best Practices

  • Use inject()
@Component({})
export class MyComponent {
  private service = inject(MyService);
}
  • Use Injector.get
const injector = Injector.create({
  providers: [{ provide: MyService }]
});
const service = injector.get(MyService);
  • Use EnvironmentInjector
const environmentInjector = inject(EnvironmentInjector);

Comments

Markdown supported