-
Notifications
You must be signed in to change notification settings - Fork 543
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:
danielelkington, LucasLeandro1204, christianechevarria, DeadZen, iocozmo and 25 more
Metadata
Metadata
Assignees
Labels
No labels