Open mindaugasnakrosis opened 5 years ago
I am using inversify-vanillajs-helpers and trying to create a new instance for factory.
registerFactory('factory', context => () => context.container.get('factory_class').create()); container.get('factory'); //[Function]
However, I get a function which I can not execute.
How to create a new instance from a registered factory using Javascript? (Not Typescript)
@dcavanagh any ideas?
I have the same question...
I am using inversify-vanillajs-helpers and trying to create a new instance for factory.
However, I get a function which I can not execute.
How to create a new instance from a registered factory using Javascript? (Not Typescript)