1

This article states that:

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.

How can I use angular2 DI as a standalone system? It's not published as a separate package as I understand.

Community
  • 1
  • 1
Max Koretskyi
  • 101,079
  • 60
  • 333
  • 488

1 Answers1

3

It was previously possible to import it from @angular/core. It is published as a separate package, injection-js, by a member of Angular team.

Also see this answer.

Community
  • 1
  • 1
Estus Flask
  • 206,104
  • 70
  • 425
  • 565