-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different behaviors of Arrow function and function #9707
Comments
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 here. |
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:
|
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
The text was updated successfully, but these errors were encountered: