Angular2 DI in Typescript. Can we use it in node.js / non-angular projects?

前端 未结 6 903
孤独总比滥情好
孤独总比滥情好 2020-12-05 13:41

Was the angular2 dependency injection container designed for standalone use, and is it possible to use it for typescript/javascript server-side applications ?

I open

6条回答
  •  温柔的废话
    2020-12-05 14:08

    Seems someone has extracted dependency injection from Angular2 recently(Jan 2017), which allow it to use outside of the framework.

    https://github.com/mgechev/injection-js

提交回复
热议问题