wookieb / alpha-dic

Powerful dependency injection container for node.js
MIT License
27 stars 0 forks source link

Allow to create service as value #2

Closed wookieb closed 7 years ago

wookieb commented 7 years ago
dic.serviceAsValue('service-name', {i: 'am', a: 'service'});

dic.get('service-name')
.then((s) => {
  s; // {i: 'am', a: 'service'}
});