Closed
Description
What problem does this feature solve?
This markup:
<component :max-items.sync="showItems"></component>
Currently compiles to:
function render() {
with(this) {
return _c('component', {
attrs: {
"max-items": showItems
},
on: {
"update:maxItems": function($event) {
showItems = $event
}
}
})
}
}
I've always written event handlers in kebab-case. It surprised me that the compiler created an event handler which is in camelCase.
What does the proposed API look like?
The compiler should output .sync
event handlers in camelCase:
on: {
"update:max-items": function($event) {
showItems = $event
}
}
Metadata
Metadata
Assignees
Labels
No labels