{"action":"created","issue":{"url":"https://api.github.com/repos/yyx990803/vue/issues/886","labels_url":"https://api.github.com/repos/yyx990803/vue/issues/886/labels{/name}","comments_url":"https://api.github.com/repos/yyx990803/vue/issues/886/comments","events_url":"https://api.github.com/repos/yyx990803/vue/issues/886/events","html_url":"https://github.com/yyx990803/vue/issues/886","id":84069474,"number":886,"title":"v-model not properly updated when used in v-repeat","user":{"login":"nevsnode","id":1632219,"avatar_url":"https://avatars.githubusercontent.com/u/1632219?v=3","gravatar_id":"","url":"https://api.github.com/users/nevsnode","html_url":"https://github.com/nevsnode","followers_url":"https://api.github.com/users/nevsnode/followers","following_url":"https://api.github.com/users/nevsnode/following{/other_user}","gists_url":"https://api.github.com/users/nevsnode/gists{/gist_id}","starred_url":"https://api.github.com/users/nevsnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nevsnode/subscriptions","organizations_url":"https://api.github.com/users/nevsnode/orgs","repos_url":"https://api.github.com/users/nevsnode/repos","events_url":"https://api.github.com/users/nevsnode/events{/privacy}","received_events_url":"https://api.github.com/users/nevsnode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T15:21:02Z","updated_at":"2015-06-02T16:26:50Z","closed_at":null,"body":"Hi,\r\n\r\nI'm currently running against an issue I have with Vue (latest stable version).\r\n\r\nBasically I have a variable list of input fields with a dynamic v-model like this:\r\n```\r\n<div v-repeat=\"mails\">\r\n    <input type=\"email\" v-model=\"mails[$index]\" />\r\n</div>\r\n```\r\n\r\nI'm facing the issue that the values from the input fields do not get updated immediately when changed.\r\nBut it does happen when using a method that pushes a string to the mails array.\r\n\r\nHere's a jsfiddle: http://jsfiddle.net/qyrjwn9e/\r\nWhen entering values to the input fields, nothing happens but as soon as you press 'add', another input field appears and the current values are shown.\r\n\r\nIf its just me who's doing something wrong I'd love to hear that, too ;-)"},"comment":{"url":"https://api.github.com/repos/yyx990803/vue/issues/comments/108006436","html_url":"https://github.com/yyx990803/vue/issues/886#issuecomment-108006436","issue_url":"https://api.github.com/repos/yyx990803/vue/issues/886","id":108006436,"user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T16:26:50Z","updated_at":"2015-06-02T16:26:50Z","body":"In general you should avoid binding `v-model` like this to an Array of primitive values. Use objects so that `v-model` can mutate the object: http://jsfiddle.net/yyx990803/qyrjwn9e/1/"}}