-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Closed

Description
What problem does this feature solve?
Vue is famous for its highly readable syntax and this can make it even more readable.
What does the proposed API look like?
Instead of writing duplicities in v-for cycles like this:
<elm
v-for="({ value, class, 'data-image' }, key) in elmprops"
:value="value"
:class="class"
:data-image="data-image"
:key="key"
/>
Would by nice to have "attributes shorthand" like this:
<elm
v-for="({ value, class, 'data-image' }, key) in elmprops"
:value
:class
:data-image
:key
/>
Like the object properties shorthand works in ES:
let routes = []
let router = { routes }
instead of unnecessary duplicities in older syntax:
let routes = []
let router = { routes: routes }
Metadata
Metadata
Assignees
Labels
No labels