Angular dependency injection in depth – Dependency providers (2021)

Опубликовано: 11 Октябрь 2020
на канале: Decoded Frontend
70,825
2k

💥Angular courses made by Dmytro - https://bit.ly/df-courses 💥
✂️Use coupon YOUTUBE_DISCOUNT to get a 10%-off discount

Hello guys! Let's continue to talk about in-depth topics of #Angular dependency injection. Today I would like to show you dependency providers like useClass, useExistiong, useValue, and use factory. Likewise, resolution modifiers control how Angular resolves dependency - dependency providers responsible for how Angular should create dependency instances. It allows you to replace different service implementations in runtime which makes your application extremely powerful and flexible. I hope you find I lot of use-cases in your applications. Thank you for your attention and enjoy watching! 😉

Angular Dependency Injection – Understanding hierarchical injectors (2020)
   • Angular Dependency Injection – Unders...  

Angular Dependency Injection in Depth - Resolution modifiers (2020)
   • Angular Dependency Injection in Depth...  

🕒 Time codes:
00:00:00 - Intro
00:01:00 - Quick recap of how we provide dependencies
00:01:18 - Describing the problem
00:03:14 - useClass in Action
00:05:46 - useExisting in Action
00:07:44 - useValue in Action
00:09:06 - A little bit about InjectionToken()
00:12:26 - useFactory in Action
00:15:11 - useValue vs useFactory. What's the difference?
00:16:24 - multi:true announcement
00:16:43 - Outro

------------------ See my another videos about Angular ------------------

✅ Check out my video "My TOP 5 Angular Interview Questions"
   • TOP 5 Angular Interview Questions and...  

✅ Check out my videos about Angular Material Library:
   • Angular Material  

✅ Check out my videos about Angular CDK:
   • Angular Material CDK  

🔗 Links:
More about Dependency Injection:
https://angular.io/guide/dependency-i...

#angulartutorial #webdevelopment #dependencyinjection