Skip to content

Commit 8d2b1a8

Browse files
committed
fix docs for .sync until fixed in vue core, fixes #1721
1 parent cdb01f4 commit 8d2b1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/guide/components-custom-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ Now the `<base-input>` component is a **fully transparent wrapper**, meaning it
136136
137137
In some cases, we may need "two-way binding" for a prop. Unfortunately, true two-way binding can create maintenance issues, because child components can mutate the parent without the source of that mutation being obvious in both the parent and the child.
138138

139-
That's why instead, we recommend emitting events in the pattern of `update:my-prop-name`. For example, in a hypothetical component with a `title` prop, we could communicate the intent of assigning a new value with:
139+
That's why instead, we recommend emitting events in the pattern of `update:myPropName`. For example, in a hypothetical component with a `title` prop, we could communicate the intent of assigning a new value with:
140140

141141
```js
142142
this.$emit('update:title', newTitle)

0 commit comments

Comments
 (0)