DEV Community


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)

50 CLI Tools You Can't Live Without

The top 50 must-have CLI tools, including some scripts to help you automate the installation and updating of these tools on various systems/distros.