Click in order · Vue.js course · Module 7: Props & Events

v-model update cycle on a component

Arrange the v-model update cycle on a component:

Items to click

  • Parent: val.value updated
  • emit('update:modelValue', newVal)
  • User input in the child
  • Parent: <Child v-model="val" />
  • Child: props.modelValue

You can check the correct answer by solving this task in the CodeWorlds game.