I've encountered some hassle when I use electrolyte. Here are;
Electrolyte automatically register components while first attempt to use, if not registered yet. Nice feature. But some case, I need to register components immediately. Not waiting to be registered by another component. Example:
var IoC = require('electrolyte');
var arg = function () {
return 'arg';
};
arg['@singleton'] = true;
IoC.register('arg', arg);
var r = IoC.create('arg');
console.log(r);
Electrolyte automatically create components and resolve whole dependency tree. Some case, I need to provide component dependencies dynamically. It would be nice, if dependencies passed to component with an array.
//index.js
var IoC = require('electrolyte');
IoC.use(IoC.node('./components'));
var r1 = IoC.create('test', [
'emre'
]);
console.log(r1);
var r2 = IoC.create('test', [
IoC.create('arg1')
]);
console.log(r2);
Hi,
I've encountered some hassle when I use electrolyte. Here are;