di.js
di.js copied to clipboard
Alive?
Hi, is this project still alive? Decorators are not part of ES6, so has this project been dropped?
I'm interested in knowing as well.
For example, is this project being abandoned for the new core angular 2 impl here: https://github.com/angular/angular/tree/master/modules/angular2/src/core/di
If so, are there plans to be able to easily use that angular 2 impl in node as a stand alone module?
Can you provide any direction for us @vsavkin @dmtrs @iammerrick
Thanks!
? anyone here
di.js is deprecated and replaced by the Angular 2 dependency injector.
Thank you @iammerrick for a definitive answer.
Can you possibly point me to an example or docs on how the Angular 2 DI might be used stand alone in node, if at all? I've attempted to get it to run before without any luck.
Can you possibly point me to an example or docs on how the Angular 2 DI might be used stand alone in node, if at all? I've attempted to get it to run before without any luck.
It is not easy to use it as standalone atm and there is no documentation for such setup. There is a plan to extract DI library from the angular2 repo in the future, but this is not the case today.
Unfortunately I got impatient and decided to extract it myself. You can find the extract here along with an es6 example.
I open sourced my in-house version here which is built on babel-runtime and is kept up to date. Mine also supports injection with React components and handles mock re-evaluation properly with child injectors. Although there aren't any up-to-date docs at the moment.
@mmoulton say:
Can you possibly point me to an example or docs on how the Angular 2 DI might be used stand alone in node, if at all? I've attempted to get it to run before without any luck.
https://github.com/angular/di.js/tree/master/example/node
This project is not actively maintained. You can use the dependency injection implementation from @angular/core
or its extraction in injection-js.
Could we add a "deprecated" message to the top of the repo?