Skip to content

Commit 367358b

Browse files
authored
fix: update component-custom-events.md (#717)
Match sample text in description and HTML example
1 parent ac5bec3 commit 367358b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-custom-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Let's create an example custom modifier, `capitalize`, that capitalizes the firs
152152

153153
Modifiers added to a component `v-model` will be provided to the component via the `modelModifiers` prop. In the below example, we have created a component that contains a `modelModifiers` prop that defaults to an empty object.
154154

155-
Notice that when the component's `created` lifecycle hook triggers, the `modelModifiers` prop contains `capitalize` and its value is `true` - due to it being set on the `v-model` binding `v-model.capitalize="bar"`.
155+
Notice that when the component's `created` lifecycle hook triggers, the `modelModifiers` prop contains `capitalize` and its value is `true` - due to it being set on the `v-model` binding `v-model.capitalize="myText"`.
156156

157157
```html
158158
<my-component v-model.capitalize="myText"></my-component>

0 commit comments

Comments
 (0)