Skip to content

Commit 2400973

Browse files
docs: convert unexplained variables to arguments in an emits example (#960)
1 parent 6f904c1 commit 2400973

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
@@ -57,7 +57,7 @@ app.component('custom-form', {
5757
}
5858
},
5959
methods: {
60-
submitForm() {
60+
submitForm(email, password) {
6161
this.$emit('submit', { email, password })
6262
}
6363
}

0 commit comments

Comments
 (0)