angular-dependency-injection
Installation
SKILL.md
Angular Dependency Injection
Master Angular's dependency injection system for building modular, testable applications with proper service architecture.
DI Fundamentals
Angular's DI uses the inject() function (Angular 14+) as the preferred
injection mechanism — no constructor parameters needed:
import { Injectable, inject } from '@angular/core';
// Service injectable at root level
@Injectable({
providedIn: 'root'
})
export class UserService {
private users: User[] = [];