Skip to content

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

@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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy