Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/guide/component-custom-events.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Emitted events can be defined on the component via the `emits` option.

```js
app.component('custom-form', {
emits: ['inFocus', 'submit']
emits: ['in-focus', 'submit']
})
```

Expand Down Expand Up @@ -81,7 +81,7 @@ app.component('my-component', {
},
emits: ['update:title'],
template: `
<input
<input
type="text"
:value="title"
@input="$emit('update:title', $event.target.value)">
Expand Down Expand Up @@ -114,7 +114,7 @@ app.component('user-name', {
},
emits: ['update:firstName', 'update:lastName'],
template: `
<input
<input
type="text"
:value="firstName"
@input="$emit('update:firstName', $event.target.value)">
Expand Down Expand Up @@ -153,7 +153,7 @@ app.component('my-component', {
},
emits: ['update:modelValue'],
template: `
<input type="text"
<input type="text"
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)">
`,
Expand Down Expand Up @@ -218,7 +218,7 @@ app.component('my-component', {
props: ['description', 'descriptionModifiers'],
emits: ['update:description'],
template: `
<input type="text"
<input type="text"
:value="description"
@input="$emit('update:description', $event.target.value)">
`,
Expand Down