Why I decided to switch to the inject() function in Angular @JoshuaMorony
Why I decided to switch to the inject() function in Angular  @JoshuaMorony
Uploaded April 2023 | Updated September 2026, 2 weeks ago
My modern Angular course: 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: youtu.be/ZzC-hfYQXvQ

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

Learn Angular with Ionic: ionicstart.com

#angular

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

0:00 Introduction
0:54 inject() benefits
1:53 Inheritance
4:05 The problem with inject()
5:36 Conclusion
Why I decided to switch to the inject() function in AngularHow to ACTUALLY switch from VS Code to NeovimWhat I learned from this crazy RxJS stream in my Angular appAngulars httpResource update has a surprising hidden featureThe signals situation in Angular is weirdTHIS is how to code declaratively in AngularHow (and why) Im rebuilding my sites with Angular and AstroIts OK/NOT OK to subscribe in AngularI bet you can write an Angular UNIT TEST after this videoThe unexpected power of letting an LLM see my personal notesA simple approach to displaying form validation messages in AngularSIGNALS can make Angular REACTIVE forms more reactive
Joshua Morony |

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

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER