Skip to content

Commit 6fcf44c

Browse files
authored
docs: fix typo in 3.4 example of v-model before defineModel (#3014)
Update v-model.md
1 parent eb0871f commit 6fcf44c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/components/v-model.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const emit = defineEmits(['update:modelValue'])
6868
6969
<template>
7070
<input
71-
:value="modelValue"
71+
:value="props.modelValue"
7272
@input="emit('update:modelValue', $event.target.value)"
7373
/>
7474
</template>
@@ -445,7 +445,7 @@ function emitValue(e) {
445445
</script>
446446
447447
<template>
448-
<input type="text" :value="modelValue" @input="emitValue" />
448+
<input type="text" :value="props.modelValue" @input="emitValue" />
449449
</template>
450450
```
451451

0 commit comments

Comments
 (0)