Skip to content

Commit 8ee82a9

Browse files
authored
Update component-basics.md (#588)
1 parent 0086137 commit 8ee82a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ Then the child component can emit an event on itself by calling the built-in [**
234234
</button>
235235
```
236236

237-
Thanks to the `v-on:enlarge-text="postFontSize += 0.1"` listener, the parent will receive the event and update `postFontSize` value.
237+
Thanks to the `@enlarge-text="postFontSize += 0.1"` listener, the parent will receive the event and update `postFontSize` value.
238238

239239
<p class="codepen" data-height="300" data-theme-id="39028" data-default-tab="html,result" data-user="Vue" data-slug-hash="KKpGyrp" data-editable="true" style="height: 300px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid; margin: 1em 0; padding: 1em;" data-pen-title="Component basics: emitting events">
240240
<span>See the Pen <a href="https://codepen.io/team/Vue/pen/KKpGyrp">

0 commit comments

Comments
 (0)