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

前端 未结 6 900
孤独总比滥情好
孤独总比滥情好 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:09

    Checkout ubiquits sources - he did somehow integrated angular 2's DI on the backend.

    If you want simple but powerfull and painless dependency injection tool for typescript and node.js typedi. It works great with angular frontends too. Also checkout other repositories of this author, there are lot of components that will help you to build node applications using TypeScript.

提交回复
热议问题