Vue · Senior · Question 32 of 75
Which Vue 2 patterns must be replaced when migrating to Vue 3?
- ✓Correct answer: Global
Vue.*APIs →createApp, event bus ($on) → a library orprovide, filters → methods/computed - 2Single-File Components must be rewritten to JSX
- 3
v-ifandv-forare removed
Explanation
Other changes: component v-model uses modelValue/update:modelValue, $listeners merged into $attrs, and multiple root nodes are allowed. Vue 2 reached end of life at the end of 2023.