Multiple v-model for custom components - Vue 3 Composition API | Vue.js 3 Tutorial

preview_player
Показать описание

Github Repository:

Add "v-model" directive on custom input Component in Vue 2

Learn Vue 3 Composition API with simple Todos example

Ref vs Reactive - Vue 3 Composition API

watchEffect vs watch in Vue 3

Vue 3 Tutorials

Vue 2 Basics Beginner Tutorial

Timestamps:
00:00 Introduction
03:46 v-model support in Vue 2
05:06 v-model breaking change in Vue 3
05:45 v-model in Composition API
07:11 multiple v-model

Also, follow us on:
Рекомендации по теме
Комментарии
Автор

Timestamps:
00:00 Introduction
01:00 Create VModelsExample.vue, VEditor.vue Component
03:46 v-model support in Vue 2
05:06 v-model breaking change in Vue 3
05:45 v-model in Composition API
07:11 multiple v-model

QiroLab
Автор

THANK UUUU, I'VE BEEN SEARCHING FOR THIS AND FINALLLY I FOUND IT

francisterrero
Автор

The cleanest explanation of this functionality on the internet. Thank you!

bennettdahl
Автор

I get mistake
error Unexpected mutation of "modelValue" prop vue/no-mutating-props

olehmanko
Автор

Thanks a lot!! I was pulling my hair over this.

roshanchapagain
Автор

A simpler approach would be, to just use an observable object that has both the title and value properties, and then pass that through the vmodel from the parent. In the child, you can just directly bind to obj.title or obj.value and all updates will flow up automatically. This is because the reactive object will detect those changes and update the parent without the need to emit the update.

let o = { title: "title", foo: 'some value'}

in parent

<child-comp v-model=o>

in child


{
props: {
value: { type: Object }
}
}
<input v-model='value.title'>
<input v-model='value.foo'>
etc

Dylan_thebrand_slayer_Mulveiny
Автор

how to make live subscriber count not 16000 number like 16548 something real time make video please give code too please please

Findgoodsong
Автор

Sir can you continue this sanctum tutorial with crud function, with user password Reset fuction

RamuRamu-eusx
Автор

create tutorial teleport/portal, and suspend

kid_rz
visit shbcf.ru