Skip to content

Updating Vue data array items #140

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

Closed
adamgd opened this issue Feb 26, 2014 · 1 comment
Closed

Updating Vue data array items #140

adamgd opened this issue Feb 26, 2014 · 1 comment

Comments

@adamgd
Copy link

adamgd commented Feb 26, 2014

I am trying to update array items in a Vue data object. I have tried using v-model:

http://jsfiddle.net/obomoboe/HM9rn/1/

and have tried specifying a handler so that I can be specific about what I am assigning from/to:

http://jsfiddle.net/obomoboe/HM9rn/2/

Neither one will update $data. When I look in the debugger at the update method, both values evaluate as I would expect them to, but it still doesn't seem to update the VM. I'm sure I've missed the point, but where?

@adamgd adamgd closed this as completed Feb 26, 2014
@adamgd
Copy link
Author

adamgd commented Feb 26, 2014

Meant to post in FAQ. Apologies...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant