inversify-props icon indicating copy to clipboard operation
inversify-props copied to clipboard

Named injections do not work

Open nsainaney opened this issue 5 years ago • 1 comments

WIth [email protected]

import { inject } from 'inversify-props'
import { named } from 'inversify'

class ...
    @inject(Symbols.feathers)
    @named('hubService')
    feathers

does not work but

import { container } from 'inversify-props'
...
this.feathers = container.getNamed(Symbols.feathers, 'hubService')

does work

nsainaney avatar Jan 15 '20 23:01 nsainaney

Yes, the wrapper is not ready for named maybe some day

CKGrafico avatar Jan 16 '20 09:01 CKGrafico