如何单独使用angular DI

How to use angular DI separately

This article 表示:

The existing DI (angular1) has some problem though:

Built into the framework - Angular 1’s DI is baked right into the framework. There’s no way for us to use it decoupled as a standalone system.

如何将angular2 DI作为独立系统使用?据我所知,它没有作为单独的包发布。

以前可以从 @angular/core 导入它。它由 Angular 团队的一名成员作为单独的软件包 injection-js 发布。

另见 this answer