( if no v-model is provided to the component ) and the v-model if it is provided to the component.
How can we do that?
Always use the local state and sync it with the prop using 2 watches: 1. Watch prop to update the local state 2. Watch local state to emit an event update:prop
Обсуждают сегодня