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

Add .sync modifier to v-bind directive #5937

Closed
maurop123 opened this issue Jun 20, 2017 · 0 comments
Closed

Add .sync modifier to v-bind directive #5937

maurop123 opened this issue Jun 20, 2017 · 0 comments

Comments

@maurop123
Copy link

What problem does this feature solve?

Currently, this syntax is supported,

<component v-bind="{propA, propB}" />

However, if you want to use the .sync modifier on the props, then you can't use the ES6 object destructuring syntax anymore.

<component :propA.sync="propA" :propB.sync="propB" />

What does the proposed API look like?

<component v-bind.sync="{propA, propB}" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants