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

vue go error when bind model with: v-model="obj['prefix'+i+'suffix']" #1935

Closed
ije opened this issue Nov 29, 2015 · 0 comments
Closed

vue go error when bind model with: v-model="obj['prefix'+i+'suffix']" #1935

ije opened this issue Nov 29, 2015 · 0 comments

Comments

@ije
Copy link

ije commented Nov 29, 2015

vue go error when bind model with: v-model="obj['prefix'+i+'suffix']", but it's ok when v-model="obj['prefix'+i]"

<p v-for="i in 3">
  <!-- the `editingContent.meta` is a vaild child object of vue instance -->
  <input v-model="editingContent.meta['prefix'+i]"> <!-- ok -->
  <input v-model="editingContent.meta[('prefix'+i)+'suffix']"> <!-- ok -->
  <input v-model="editingContent.meta['prefix'+i+'suffix']"> <!-- error -->
</p>

console print:
screen-shot-2015-11-29-at-22 07 45

with vue 1.10

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