YouTube doesn't want you know this subscribers secret
Get Free YouTube Subscribers, Views and Likes

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

Follow
Joshua Morony

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:    • Can AI explain the most challenging A...  

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:   / joshuamorony  

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

posted by Trzinuwh