Circumventing the DI system

💣 Short version: DON'T.

People coming from nodejs might want to use a simpler dependency system. The most popular approaches:

These approaches work in a nodejs environment, but not in Karma which runs tests inside the browser (not to mention the need for transpiling, at the minimum from ts to js).

Angular's DI is platform agnostic and allows tests to be run the same way both in the browser or on the server in a virtual jsdom environment.