Hacker News new | ask | show | jobs
by bradstewart 2574 days ago
Unless you care about the scope/lifecycle of the service. Or want to easily replace its implementation in different contexts (like tests).
1 comments

Most test frameworks allow you to stub imports. DI is just one of the many wheels Angular has reinvented.