di.js
di.js copied to clipboard
More node.js examples
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.
:+1: