mid2 zgłoszeń
Wyjaśnij dependency injection w Angular.
Angular ma hierarchiczny DI container. Serwisy dekorowane @Injectable(), rejestrowane w providedIn: 'root' (singleton) lub w module/komponencie. Injector tree: root → module → component. useClass, useValue, useFactory do konfiguracji providerów.