di.js icon indicating copy to clipboard operation
di.js copied to clipboard

Alive?

Open ludydoo opened this issue 9 years ago • 10 comments

Hi, is this project still alive? Decorators are not part of ES6, so has this project been dropped?

ludydoo avatar Oct 16 '15 14:10 ludydoo

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!

mmoulton avatar Oct 20 '15 22:10 mmoulton

? anyone here

ludydoo avatar Oct 27 '15 23:10 ludydoo

di.js is deprecated and replaced by the Angular 2 dependency injector.

iammerrick avatar Oct 28 '15 17:10 iammerrick

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.

mmoulton avatar Oct 29 '15 16:10 mmoulton

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.

pkozlowski-opensource avatar Oct 29 '15 17:10 pkozlowski-opensource

Unfortunately I got impatient and decided to extract it myself. You can find the extract here along with an es6 example.

amurdock avatar Jan 25 '16 12:01 amurdock

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.

L8D avatar Jan 25 '16 15:01 L8D

@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

KostyaTretyak avatar Jul 05 '16 11:07 KostyaTretyak

This project is not actively maintained. You can use the dependency injection implementation from @angular/core or its extraction in injection-js.

mgechev avatar Aug 06 '17 22:08 mgechev

Could we add a "deprecated" message to the top of the repo?

nicojs avatar Feb 15 '18 09:02 nicojs