Dependency Injection in Angular. Everything you need to know!

Опубликовано: 17 Май 2026
на канале: Evhenii Chuhai
173
9

My linkedIn:   / evhenii-chuhai-00891919b  

DI deep dive: https://angular.love/angular-di-getti...

Ivy engine:
   • How Angular works | Kara Erickson | #Angul...  
   • Deep Dive into the Angular Compiler | Alex...  
   • Angular’s new renderer Ivy: a deep dive in...  

0:00 Defining a problem
1:15 Inversion of Control
4:00 IoC container
5:30 Pros and cons of DI
7:47 What are dependencies and injectors in Angular
8:30 How can we interact with Angular's DI?
8:59 Types of injectors
11:30 Injector hierarchy
13:56 Singleton
15:30 First break
15:57 Configuring environment injectors, @Injectable decorator, providedIn, appConfig
18:10 Configuring element injectors, providers array
20:02 Dependency providers: useClass
20:50 InjectionToken
24:45 Dependency providers: useValue, multi
26:25 Issues with provider typings
28:00 Dependency providers: useFactory
31:17 Dependency providers: useExisting
33:05 inject()
34:22 Injection context
36:30 Router environment injector
38:14 runInInjectionContext()
41:45 DestroyRef
45:04 More utility function examples
45:43 Second break
45:54 Component view concept and viewProviders, "local" resolution rules
50:55 Resolution modifiers: Optional
51:52 Resolution modifiers: Self
52:30 Resolution modifiers: SkipSelf
52:52 Resolution modifiers: Host
54:53 Combining resolution modifiers
55:32 Dependency resolution: summary
58:00 Small example of what we can understand now
1:00:24 The end
#angular #angular17 #angulartutorial #frontenddevelopment #typescript #dependencyinjection