We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I want inject default value like this: const Child = { inject: { foo: { from: 'bar', default: 'foo' } }} How should I write it? thx ;)
const Child = { inject: { foo: { from: 'bar', default: 'foo' } }}
The text was updated successfully, but these errors were encountered:
Currently you can't. If you want do a PR, inject method is here
Sorry, something went wrong.
We are now using inject from vue-property-decorator and that supports default values.
@Inject(options?: { from?: InjectKey, default?: any } | InjectKey) decorator
See here
No branches or pull requests
If I want inject default value like this:
const Child = { inject: { foo: { from: 'bar', default: 'foo' } }}
How should I write it? thx ;)
The text was updated successfully, but these errors were encountered: