Skip to content

Commit 8730ff6

Browse files
committed
Convert unexplained variables to arguments in an emits example
vuejs/docs@2400973#diff-0ddfe84e020022e6d0eef551720a870386146a8703934cd0cc00a952e651e402
1 parent 1151361 commit 8730ff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/component-custom-events.md

+1-1
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)