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
When in middleware context, app, $moment seems to be undefined. When called in component, however, there seems to be no problem.
nuxt.config.js setup:
module.exports = { /* ** Modules */ modules: [ '@nuxtjs/moment', ], /* ** Moment */ moment: { locales: ['de'], plugin: true, }, /* ** Router */ router: { middleware: ['test'], }, };
Middleware (test.js) code where $moment is undefined:
export default function (context) { console.log(context.app.$moment); }
When does $moment get injected to Vue context and is there something I'm missing?
The text was updated successfully, but these errors were encountered:
feat: improvements (#8)
98c790d
- Use inject - Update deps - Add defaultLocale option Resolves #6 Resolves #5 Resolves #4 Resolves #3
Successfully merging a pull request may close this issue.
When in middleware context, app, $moment seems to be undefined. When called in component, however, there seems to be no problem.
nuxt.config.js setup:
Middleware (test.js) code where $moment is undefined:
When does $moment get injected to Vue context and is there something I'm missing?
The text was updated successfully, but these errors were encountered: