Skip to content
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

v-model variable reference #251

Closed
joshuakemmerling opened this issue Apr 30, 2014 · 4 comments
Closed

v-model variable reference #251

joshuakemmerling opened this issue Apr 30, 2014 · 4 comments

Comments

@joshuakemmerling
Copy link

I was working with form elements and came across a potential bug. It deals with points to objects in the v-model attribute. If you point to the variable like 'person.name' it works but if you try and point to it like 'person['name']' it doesn't work.

Here is an example:
http://jsfiddle.net/hellojosh/L43Vc/

@marfalkov
Copy link

@helloJosh try "person['name']" instead of person['person'] and it'll work.

@joshuakemmerling
Copy link
Author

@marfalkov Thanks for looking into this. I miss typed the variable name. I fixed it here:

http://jsfiddle.net/hellojosh/L43Vc/

If you edit the first textbox the values change, but if you edit the second textbox, the values do not change.

@marfalkov
Copy link

yyx990803 pushed a commit that referenced this issue Apr 30, 2014
@marfalkov
Copy link

@yyx990803 👍

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

3 participants