Skip to content
New issue

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

Vue 1.0.0-beta.3 Non-required two-way binding warns if omitted. #1400

Closed
Morgul opened this issue Oct 10, 2015 · 1 comment
Closed

Vue 1.0.0-beta.3 Non-required two-way binding warns if omitted. #1400

Morgul opened this issue Oct 10, 2015 · 1 comment

Comments

@Morgul
Copy link

Morgul commented Oct 10, 2015

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."

@mark-hahn
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants