Why I decided to switch to the inject() function in Angular

Why I decided to switch to the inject() function in Angular

Joshua Morony

55 лет назад

63,049 Просмотров

My modern Angular course: https://angularstart.com/

Angular 14 gave us the ability to use the inject() function more generally in our projects, including replacing constructor based dependency injection. But is it a good idea to switch to it?

More on Dependency Injection: https://youtu.be/ZzC-hfYQXvQ

Get weekly content and tips exclusive to my newsletter: https://mobirony.ck.page/4a331b9076

Learn Angular with Ionic: https://ionicstart.com

#angular

- More tutorials: https://eliteionic.com
- Follow me on Twitter: https://twitter.com/joshuamorony

0:00 Introduction
0:54 inject() benefits
1:53 Inheritance
4:05 The problem with inject()
5:36 Conclusion

Тэги:

#ionic #tutorial #tutorials #ionic_tutorials #ionic_framework #coding #coding_tutorials #angular #angular_tutorials #capacitor_tutorials #mobile #mobile_apps #apps #html5 #ios #android #native #hybrid #pwa #web_apps #progressive_web_applications #programming #stenciljs #stencil #performance #ui #ux #animations #screencast #rxjs #nx #ngrx #architecture
Ссылки и html тэги не поддерживаются


Комментарии: