Skip to content

Commit 626a4bf

Browse files
Update events.md - Diff between Options API and Composition API text (#2550)
* Update events.md - Diff between Options API and Composition API text The emits support for object sintax for Options API text was displayed for both, Options and Composition API. * Update events.md - in span instead of repeat code in different divs * Update events.md - fix options-api class * Update src/guide/components/events.md Co-authored-by: Natalia Tepluhina <[email protected]> --------- Co-authored-by: Natalia Tepluhina <[email protected]>
1 parent 575a6a7 commit 626a4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/components/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export default {
176176

177177
</div>
178178

179-
The `emits` option also supports an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
179+
The `emits` option and `defineEmits()` macro also support an object syntax, which allows us to perform runtime validation of the payload of the emitted events:
180180

181181
<div class="composition-api">
182182

0 commit comments

Comments
 (0)