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