Vue.js 3 | How Reusable Components Work with One v-model ? (under 3 Minutes) Part 1

preview_player
Показать описание
Understanding how reusable components work with one v-model
v-model
props
emit function
Рекомендации по теме
Комментарии
Автор

You could also place the @input on the component in the parent, and not having to emit from the child

julienSibille
Автор

Really wonering - what is the advantage of using v-model compared to prop & emit pattern?
Thanks for the amazing video but im still quite confused with the above

captainlennyjapan
Автор

Careful with mutating the parent props!

AlouiMohamedhabib