DEV Community

Towry
Towry

Posted on

Answer: How dependency injection in Angular is useful since it doesn't solve anything apparently?

First of all, it's a bad question for StackOverflow But it deserves the answer. So here is it.

If you don't use Dependency Injection

The main difference is that if you don't use DI (dependency injection) then your code MUST know how to create all of its dependencies. You may…

Top comments (0)