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
On Vue v1.0.0-beta.3, when creating a component that has a two-way binding specified, but not required, a warning is still thrown.
For example:
var component = Vue.component({ props: { show: { type: Boolean, default: false, twoWay: true } } });
This prints the warning: "[Vue warn]: Prop "show" expects a two-way binding type."
The text was updated successfully, but these errors were encountered:
If it doesn't mean it is required, then what does it mean?
On Fri, Oct 9, 2015 at 5:02 PM, Christopher S. Case < notifications@github.com> wrote:
On Vue v1.0.0-beta.3, when creating a component that has a two-way binding specified, but not required, a warning is still thrown. For example: var component = Vue.component({ props: { show: { type: Boolean, default: false, twoWay: true } } }); This prints the warning: "[Vue warn]: Prop "show" expects a two-way binding type." — Reply to this email directly or view it on GitHub https://github.com/yyx990803/vue/issues/1400.
— Reply to this email directly or view it on GitHub https://github.com/yyx990803/vue/issues/1400.
Sorry, something went wrong.
props: only warn twoWay when prop is present (fix #1400)
d8862a1
No branches or pull requests
On Vue v1.0.0-beta.3, when creating a component that has a two-way binding specified, but not required, a warning is still thrown.
For example:
This prints the warning: "[Vue warn]: Prop "show" expects a two-way binding type."
The text was updated successfully, but these errors were encountered: