Skip to content

Short syntax for v-bind attributes with the same names #7848

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

Closed
davletovalmir opened this issue Mar 16, 2018 · 1 comment
Closed

Short syntax for v-bind attributes with the same names #7848

davletovalmir opened this issue Mar 16, 2018 · 1 comment

Comments

@davletovalmir
Copy link

What problem does this feature solve?

Reduce amount of code and make code neater.

What does the proposed API look like?

It looks like ES6 destructuring assignment: ... :foo ... instead of ... :foo='foo' ....

Right now it doesn't work, since according with standards, such attributes are considered as Boolean Attributes and converted from ... :foo ... to :foo=":foo". And I'm not even sure if it's not a bad practice to use them in proposed way (since if such attributes are called Boolean Attributes, they should represent boolean values). But having that feature would be really great!

@sqal
Copy link
Contributor

sqal commented Mar 16, 2018

This idea has been proposed before -> #2877

@posva posva closed this as completed Mar 16, 2018
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