You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making some sample projects to use inversify-props with Nuxt, both in Typescript and Javascript. I've succsesfully achieved what I wanted to try in this sample repo with Typescript.
The thing is that when I try to use @inject('SomeService') someService in a javascript es6 class, the property is not created (someService is undefined), but if I use someService = container.get(cid.SomeService) then it works fine.
I don't know if it's my fault or something else.
All help would be appreciated, thanks in advance !
The text was updated successfully, but these errors were encountered:
Hi, thanks for the reply. I was a bit wrong, I just discovered that it works with regular es6 classes but not with Vue classes decorated with vue-class-component or vuex store modules decorated with vuex-module-decorators.
Also, note that it works fine with typescript in decorated vue components.
It's not that I can't use it that way, but it would be nice to keep a consistent usage in all classes with inject. I don't know if this is something that can be fixed, but if you can think on a solution, please tell me.
Hello, first I want to say thanks for this tool.
I'm making some sample projects to use inversify-props with Nuxt, both in Typescript and Javascript. I've succsesfully achieved what I wanted to try in this sample repo with Typescript.
The thing is that when I try to use
@inject('SomeService') someService
in a javascript es6 class, the property is not created (someService
is undefined), but if I usesomeService = container.get(cid.SomeService)
then it works fine.I don't know if it's my fault or something else.
All help would be appreciated, thanks in advance !
The text was updated successfully, but these errors were encountered: