Angular: Dependency Injection vs. Static methods

Vaiz
JavaScript in Plain English
4 min readNov 21, 2020

--

Photo by Robert Anasch on Unsplash

In everyday life, problems often arise from choice. The more chances we have to run an activity, the harder it will be to choose. This also happens in development, and today more than ever we have many tools that allow us to achieve the same results in different ways.

Today we quickly explain when and why to use dependency injection on Angular over static classes.

--

--

WebDev with mainly expertise in React,Angular.Dabbled with Alexa.When not coding, you can find me dancing some JustDance choreography 🕺 or writing articles ✏️