Angular Dependency Injection – Understanding hierarchical injectors (2021)

Decoded Frontend
Decoded Frontend
85.6 هزار بار بازدید - 4 سال پیش - 💥 Learn how to build
💥 Learn how to build custom form controls like select dropdown with multiselection in my new advanced Angular Forms course https://bit.ly/advanced-angular-forms 💥
✂️Use coupon YOUTUBE_DISCOUNT to get a 10%-off discount

Dependency Injection in Angular is a big and hard topic but it is crucial to understand it at least on some basic level in order to build scalable, testable, and flexible components and applications. Why do we need DI in Angular? What happens behind the scenes? How does Angular resolve dependencies? Answers to all these questions you will find in this video tutorial.
Thank you for your attention and enjoy watching! ;)

⚠️ New to Angular?
Get the best onboarding Angular course which I used for an easy start with Angular:
http://bit.ly/angular-for-beginners

🕒 Time codes:
00:00:00 - Intro
00:01:00 - Why do we need Dependency Injection?
00:03:00 - Let's create our own DI prototype
00:08:49 - Hierarchical Dependency Injection in Angular explained
00:12:17 - Dependency resolution rules
00:15:43 - Outro

⚠️ 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...
4 سال پیش در تاریخ 1399/06/30 منتشر شده است.
85,666 بـار بازدید شده
... بیشتر