Skip to content

Commit

Permalink
fix: update component-custom-events.md (#717)
Browse files Browse the repository at this point in the history
Match sample text in description and HTML example
  • Loading branch information
tobiaskapser committed Nov 28, 2020
1 parent ac5bec3 commit 367358b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/component-custom-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Let's create an example custom modifier, `capitalize`, that capitalizes the firs

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.

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"`.
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"`.

```html
<my-component v-model.capitalize="myText"></my-component>
Expand Down

0 comments on commit 367358b

Please sign in to comment.