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 which control how Angular resolves dependency - dependency providers responsible for how Angular should create dependency instances. It allows you to replace different service implementation in runtime which make 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! 😉
📣 Become a Pro in Angular Material Theming (Advanced Workshop) 📣
https://bit.ly/angular-material-theming-workshop
✅ Use 15%-off coupon code: YOUTUBE_DISCOUNT (Only 2 coupons left)
📣 Blazing fast GraphQL Backend just in 1 Day with Hasura Engine 📣
https://bit.ly/complete-hasura-course
✅ 20%-off coupon code: HASURA-EASY-START
Angular Dependency Injection – Understanding hierarchical injectors (2020)
https://youtu.be/G8zXugcYd7o
Angular Dependency Injection in Depth - Resolution modifiers (2020)
https://youtu.be/uVGnsmm9g-I
🕒 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"
https://youtu.be/KhUtM8skC5A
✅ Check out my videos about Angular Material Library:
https://www.youtube.com/playlist?list=PLX7eV3JL9sfkREmy-qxyNqLw73y76nOHm
✅ Check out my videos about Angular CDK:
https://www.youtube.com/playlist?list=PLX7eV3JL9sfkdwkADI4PVDmNins_fO_vp
🔗 Links:
More about Dependency Injection:
https://angular.io/guide/dependency-injection
#angulartutorial #webdevelopment #dependencyinjection