{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/3260","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/3260/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/3260/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/3260/events","html_url":"https://github.com/vuejs/vue/issues/3260","id":164962653,"number":3260,"title":"v-model emitting native change/input events","user":{"login":"aristidesfl","id":208149,"avatar_url":"https://avatars.githubusercontent.com/u/208149?v=3","gravatar_id":"","url":"https://api.github.com/users/aristidesfl","html_url":"https://github.com/aristidesfl","followers_url":"https://api.github.com/users/aristidesfl/followers","following_url":"https://api.github.com/users/aristidesfl/following{/other_user}","gists_url":"https://api.github.com/users/aristidesfl/gists{/gist_id}","starred_url":"https://api.github.com/users/aristidesfl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aristidesfl/subscriptions","organizations_url":"https://api.github.com/users/aristidesfl/orgs","repos_url":"https://api.github.com/users/aristidesfl/repos","events_url":"https://api.github.com/users/aristidesfl/events{/privacy}","received_events_url":"https://api.github.com/users/aristidesfl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-11T23:32:07Z","updated_at":"2016-07-11T23:44:05Z","closed_at":"2016-07-11T23:44:05Z","body":"The following example shows Vue with a jQuery plugin. It almost works, but not when changing the vm.data. Writing custom directives is an option in this kind of integration, but for many plugins this wouldn't be necessary if Vue emitted a change even on the bound element. \r\n\r\nExample: https://jsbin.com/ruwisiyowo/edit?html,css,js,output\r\n\r\nRelated: https://github.com/vuejs/vue/issues/503"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/231898297","html_url":"https://github.com/vuejs/vue/issues/3260#issuecomment-231898297","issue_url":"https://api.github.com/repos/vuejs/vue/issues/3260","id":231898297,"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":"2016-07-11T23:44:05Z","updated_at":"2016-07-11T23:44:05Z","body":"I don't think it's Vue's responsibility. You can easily write a custom directive to emit the change event and use it alongside `v-model`:\r\n\r\n``` js\r\nVue.directive('emit-change', function () {\r\n    var el = this.el\r\n    Vue.nextTick(function () {\r\n      $(el).trigger('change')\r\n   })\r\n})\r\n```"}}
{"actor":{"display_login":"yyx990803"}}