container-ioc
container-ioc copied to clipboard
Inversion of Control container & Dependency Injection for Javascript and Node.js apps powered by Typescript.
It looks like the container crashes with a stack-overflow when a cyclic dependancy has been configured. ``` internal/console/constructor.js:241, if (isStackOverflowError(e)), ^ RangeError: Maximum call stack size exceeded, at Object.Console. (internal/console/constructor.js:241:9),...
The idea is to add ability of injecting stuff asynchronously. The syntax example: ``` { token: 'IConfig', useFactory: async (service: any) => { const something = await.service.getSomething(); return something; },...
I've been thinking about creating additional api for maintaining hierarchical containers through Modules. The philosophy is similar to the ones used in angular and Nest.js. Motivation. Encapsulating related services and...
Hello, If I want to register a value of 0/null/false/empty string, it won't get resolved and it will fail. Ex: `container.register({ token: 'foo', useValue: 0 })`; `container.resolve('foo')` fails The problem...
Fixes https://github.com/typesoft/container-ioc/issues/102
Implementing this feature is a great way to learn Reflect API and Typescript decorators. I've provided link to a great article on this topic. [Typescript Decorators and Reflect API](http://blog.wolksoftware.com/decorators-metadata-reflection-in-typescript-from-novice-to-expert-part-4) *...
That would be helpful. Gtibook or something. If you got some ideas put them here. Let's discuss
I messed up interfaces for registered providers within Containers. They can't even be exported.