Skip to content

Shorthand attribute/prop syntax #7144

Closed
@jasonlfunk

Description

@jasonlfunk

What problem does this feature solve?

I often find myself writing code like this:

<component :data='data' :name='name' :email='email'></component>

This code is redundant and isn't fun to write.

What does the proposed API look like?

Using es6 Object Literal Shorthand as inspiration, the component could instead be written like this:

<component :data :name :email></component>

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