Skip to content

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

Closed
@davletovalmir

Description

@davletovalmir

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions