Using v-model on custom components - the old way and the new way
21 May 2025
Using v-model
on a custom component has always been a bit clunky because the directive was designed for use on native form elements. defineModel()
, however, which landed in Vue 3.4, simplifies things.