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 setting one of the metadata fields to false, they disappear completely from the $route.meta .
File test.vue:
<template> <code> isTrue: {{ this.$route.meta.isTrue }} isFalse: {{ this.$route.meta.isFalse }} isOther: {{ this.$route.meta.isOther }} isAlsoTrue: {{ this.$route.meta.isAlsoTrue }} isAlsoFalse: {{ this.$route.meta.isAlsoFalse }} </code> </template> <script> export default { isTrue: true, isFalse: false, isOther: 'other', meta: { isAlsoTrue: true, isAlsoFalse: false, }, } </script> <style scoped> code { white-space: pre-wrap; } </style>
Output:
isTrue: true isFalse: isOther: other isAlsoTrue: true isAlsoFalse:
(I'm using v2.0.6 and nuxt v2.15.3.)
The text was updated successfully, but these errors were encountered:
@alxgrepe Thanks for discovering this issue! Should be fixed by running npm update or yarn upgrade. Reason was a bug in ast-to-literal.
npm update
yarn upgrade
Sorry, something went wrong.
Awesome @dword-design, thanks for the quick fix - I can confirm that it works perfectly now!
Successfully merging a pull request may close this issue.
When setting one of the metadata fields to false, they disappear completely from the $route.meta .
File test.vue:
Output:
(I'm using v2.0.6 and nuxt v2.15.3.)
The text was updated successfully, but these errors were encountered: