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

More node.js examples

Open marcosrmendezaw opened this issue 10 years ago • 1 comments

Hi,

I'm new to angular/di and I'm trying to use this for in my server-side nodejs app. I would appreciate a couple more examples using this with nodejs manually without having to annotate everything. I have a large codebase already and changing everything would not work atm.

My DI is wrapped in a simple class context {get: function(name) {... }}. I have a need for some things to be resolved as a singleton, other things to be created as needed, and scopes - e.g. a global shared one and a request one, where I can dynamically add bindings.

marcosrmendezaw avatar Aug 25 '14 20:08 marcosrmendezaw

:+1:

Xiphe avatar Jan 09 '15 08:01 Xiphe