Closed
Description
I have a working rough proof-of-concept here:
GavinRay97/vue@524d4c4
Allow binding property keys to values of the same name, the way that ES6 shorthand for object syntax works.
const a = 1
const b = 2
// Much more concise, especially when you have many entries
const obj = { a, b }
// Not DRY at all
const obj = { a: a, b: b }
<my-component :name :whatever>
// Translates to
<my-component :name="name" :whatever="whatever">
Inspired by this Twitter comment:
Metadata
Metadata
Assignees
Labels
No labels