Skip to content

Shorthand for property passing :value vs :value="value" #10463

@buzdyk

Description

@buzdyk

What problem does this feature solve?

Subject pretty much sums it all up. More often than not a property name matches a variable name. Typing :value="value" :options="options" looks a bit excessive.

Feature is strictly cosmetics but it would help us to write less and more expressive code.

What does the proposed API look like?

<component :prop1 :prop2 /> would automatically pass prop1 and prop2 to the component. If prop1/prop2 is not defined undefined would be passed instead. Additionally a warning would be printed to the console.

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