Now in Vue 3.3 there is available experimental feature which a cool shortcut for computed getter and setter, instead of use: const modelValue = defineModel() and use it in your v-model inside the component template
What if the modelValue is an object? And we bind the modelValue key with the input field . I tried this and it appears that the setter function is not triggered.
@@JohnKomarnicki thanks for your reply. for an aspiring developer, would you suggest learning react or vue? can you make an honest video if you don't want to reply right away?
I finally fully understood. Good job, thanks!
Thank you so much! Just when I wanted this video! I just subbed to you! You are a lifesaver!
Glad to hear!
This video could be redone with the new define model and simplify it even more! Good work
Amazing SIR!
Now in Vue 3.3 there is available experimental feature which a cool shortcut for computed getter and setter, instead of use: const modelValue = defineModel() and use it in your v-model inside the component template
Yes, I created a video on this a few days ago.
th-cam.com/video/-v-NWHH32dw/w-d-xo.html
DefineModel is now my preferred way to use v model in components
Yeah, I made this video right before I covered the new defineModel macro
What if the modelValue is an object? And we bind the modelValue key with the input field .
I tried this and it appears that the setter function is not triggered.
const modelValue = defineModel()
console.log(modelValue.value)
is your course fully composition api and script setup? if not can you make one?
I have a crash course, which uses that.
@@JohnKomarnicki thanks for your reply. for an aspiring developer, would you suggest learning react or vue? can you make an honest video if you don't want to reply right away?