Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upDifferent behaviors of Arrow function and function #9707
Closed
Comments
This comment has been minimized.
This comment has been minimized.
|
I helped re-formatted your issue and fixed a typo. It seems that the template compiler is not generating correct code with See the difference " rel="nofollow">here. |
Justineo
added
the
bug
label
Mar 15, 2019
added a commit
to Justineo/vue
that referenced
this issue
Mar 15, 2019
Justineo
referenced this issue
Mar 15, 2019
Merged
fix(codegen): inline function expression can be named inside a `v-on`… #9709
Justineo
added
the
has PR
label
Mar 15, 2019
This comment has been minimized.
This comment has been minimized.
DanielDanaee
commented
Mar 15, 2019
|
Why would you expect this to work? directive values should be method names or methods only. Have a look at the following part of the documentation: https://vuejs.org/v2/guide/events.html#Method-Event-Handlers This is probably what you should be doing:
|
yyx990803
closed this
in
#9709
Mar 18, 2019
added a commit
that referenced
this issue
Mar 18, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


zhangenming commentedMar 15, 2019
•
edited by Justineo
Version
2.6.8
Reproduction link
https://codepen.io/zhangenming/pen/GexZQK
Steps to reproduce
Compiled:
Compiled:
What is expected?
can be work
What is actually happening?
this wont' be work