-
-
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
Data method of components to be called with this #6739
Labels
Comments
13 tasks
Kingwl
added a commit
to Kingwl/vue
that referenced
this issue
Oct 10, 2017
yyx990803
pushed a commit
that referenced
this issue
Oct 10, 2017
close via #6760 |
ztlevi
pushed a commit
to ztlevi/vue
that referenced
this issue
Feb 14, 2018
f2009
pushed a commit
to f2009/vue
that referenced
this issue
Jan 25, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What problem does this feature solve?
When a computed value is computed, it's called with
this
as a parameter.This allows us to write code like this:
The same can't be done with the data method, due to it not being called with
this
.What does the proposed API look like?
The text was updated successfully, but these errors were encountered: