Skip to content

Commit c8f4182

Browse files
fix: fixed example for v-model
1 parent fe5e1eb commit c8f4182

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/guide/migration/v-model.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ In 3.x `v-model` on the custom component is an equivalent of passing a `modelVal
9696

9797
<!-- would be shorthand for: -->
9898

99-
<MyBook :modelValue="pageTitle" @update:modelValue="pageTitle = $event" />
99+
<ChildComponent
100+
:modelValue="pageTitle"
101+
@update:modelValue="pageTitle = $event"
102+
/>
100103
```
101104

102105
### `v-model` arguments

0 commit comments

Comments
 (0)