Tushar Mathur

Results 210 comments of Tushar Mathur

@mathieug Why would you want to do it anyways? @derhuerst Define "normally" please. You can use the class directly via `require` anywhere. May be you should post some more code...

I don't mean to self promote, but [node-ioc](https://github.com/tusharmath/ioc) is something that can help you create custom factories. ``` javascript const IOC = require('node-ioc') const container = new IOC() class SampleClass...

let me guess, you too have moved to [reactive](http://reactivex.io) programming ? :)

Why can't `Dep1` have dependencies injected in the same way? My idea is not a specific use case, infact that is what is being practiced by - [AngularDI](https://github.com/angular/di.js/blob/master/example/node/main.js)

> Modules are cached after the first time they are loaded. This means (among other things) that every call to require('foo') will get exactly the same object returned, if it...

Exactly the way you were doing it earlier. Only difference is I don't pass the keyname (First Parameter). Neither do query on it.

I was not able to get enough time to work on this pull request. My approach would be to use es6 Map.

Sure @waghanza !

As a matter of fact I created this issue because I couldn't find anything good.