How v-model works? #7470
Unanswered
ruojianll
asked this question in
Help/Questions
Replies: 1 comment
-
const { resolveComponent: _resolveComponent, openBlock: _openBlock, createBlock: _createBlock } = Vue
return function render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_Component = _resolveComponent("Component")
return (_openBlock(), _createBlock(_component_Component, {
modelValue: _ctx.foo.bar,
"onUpdate:modelValue": $event => ((_ctx.foo.bar) = $event)
}, null, 8 /* PROPS */, ["modelValue", "onUpdate:modelValue"]))
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How v-model works to change a field of an object? Does template compiler generate extra code?
Beta Was this translation helpful? Give feedback.
All reactions