Skip to content

Feature request: shorthand bindable attributes #5068

Closed
@neves

Description

@neves

Suppose the follow declaration inside a component:

<input :value="value" :readonly="readonly" :disabled="disabled" :maxlength="maxlength">

My feature suggestion is a shorthand declaration for when the attribute is bound to a property with same name, so the code above could be written like this:

<input :value :readonly :disabled :maxlength>

The same could be for v-on

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