{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/1229","labels_url":"https://api.github.com/repos/vuejs/vue/issues/1229/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/1229/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/1229/events","html_url":"https://github.com/vuejs/vue/issues/1229","id":103960633,"number":1229,"title":"Deprecate \"options\" param for <select v-model>","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},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/vuejs/vue/milestones/13","html_url":"https://github.com/vuejs/vue/milestones/1.0.0-alpha","labels_url":"https://api.github.com/repos/vuejs/vue/milestones/13/labels","id":1257572,"number":13,"title":"1.0.0-alpha","description":"","creator":{"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},"open_issues":0,"closed_issues":17,"state":"closed","created_at":"2015-08-17T06:29:02Z","updated_at":"2015-11-06T20:30:27Z","due_on":null,"closed_at":"2015-11-06T20:30:27Z"},"comments":8,"created_at":"2015-08-30T22:47:04Z","updated_at":"2016-02-01T12:12:37Z","closed_at":"2015-08-31T21:15:48Z","body":"### Problem\r\n\r\nThe `options` param has been a common gotcha when dealing with `v-model` on `<select>` elements. It  often requires additional formatting of the source data with a custom filter, and has limited capabilities in customizing the rendered options.\r\n\r\n### Proposal\r\n\r\nThe reason `options` existed was due to some internal implementation issues - there is really no reason for it to be that way from the UX perspective. Therefore in 1.0, with some internal refactoring, we will deprecate the `options` param - instead, just use a normal `v-for`:\r\n\r\n``` html\r\n<select v-model=\"selected\">\r\n  <option v-for=\"option in list\">{{option}}</option>\r\n</select>\r\n```\r\n\r\nIf you have an Array of objects, you can also bind the underlying `v-model` value directly to the object by using `v-bind:value` on the options:\r\n\r\n``` html\r\n<select v-model=\"selected\">\r\n  <option v-for=\"obj in objList\" v-bind:value=\"obj\">{{obj.description}}</option>\r\n</select>\r\n```"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/177942557","html_url":"https://github.com/vuejs/vue/issues/1229#issuecomment-177942557","issue_url":"https://api.github.com/repos/vuejs/vue/issues/1229","id":177942557,"user":{"login":"sagaio","id":8861915,"avatar_url":"https://avatars.githubusercontent.com/u/8861915?v=3","gravatar_id":"","url":"https://api.github.com/users/sagaio","html_url":"https://github.com/sagaio","followers_url":"https://api.github.com/users/sagaio/followers","following_url":"https://api.github.com/users/sagaio/following{/other_user}","gists_url":"https://api.github.com/users/sagaio/gists{/gist_id}","starred_url":"https://api.github.com/users/sagaio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagaio/subscriptions","organizations_url":"https://api.github.com/users/sagaio/orgs","repos_url":"https://api.github.com/users/sagaio/repos","events_url":"https://api.github.com/users/sagaio/events{/privacy}","received_events_url":"https://api.github.com/users/sagaio/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T12:12:37Z","updated_at":"2016-02-01T12:12:37Z","body":"@yyx990803 FYI, I think http://vuejs.org/examples/select2.html is still using the old param."}}