Question · Vue.js course · Module 7: Props & Events
Implementing v-model in a component
What must a component do to support v-model?
Answer options
- Only accept a value prop
- Use the v-model directive internally
- Accept a modelValue prop and emit update:modelValue
- Nothing special - it works automatically
You can check the correct answer by solving this task in the CodeWorlds game.