{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/312","labels_url":"https://api.github.com/repos/vuejs/Discussion/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/Discussion/issues/312/comments","events_url":"https://api.github.com/repos/vuejs/Discussion/issues/312/events","html_url":"https://github.com/vuejs/Discussion/issues/312","id":97352453,"number":312,"title":"Computed property setter does not invoke","user":{"login":"Darkside73","id":339596,"avatar_url":"https://avatars.githubusercontent.com/u/339596?v=3","gravatar_id":"","url":"https://api.github.com/users/Darkside73","html_url":"https://github.com/Darkside73","followers_url":"https://api.github.com/users/Darkside73/followers","following_url":"https://api.github.com/users/Darkside73/following{/other_user}","gists_url":"https://api.github.com/users/Darkside73/gists{/gist_id}","starred_url":"https://api.github.com/users/Darkside73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Darkside73/subscriptions","organizations_url":"https://api.github.com/users/Darkside73/orgs","repos_url":"https://api.github.com/users/Darkside73/repos","events_url":"https://api.github.com/users/Darkside73/events{/privacy}","received_events_url":"https://api.github.com/users/Darkside73/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-26T21:41:30Z","updated_at":"2015-07-27T09:41:25Z","closed_at":null,"body":"Example (http://jsfiddle.net/1jrt1mzj/):\r\n```javascript\r\nVue.component(\r\n  'foobar',\r\n  {\r\n    props: ['foo'],\r\n    template: '<span>{{foo.bar}}</span><br><button v-on=\"click: onClick\">test</button>',\r\n    methods: {\r\n      onClick: function() {\r\n        this.foo = {bar: 4}\r\n      }\r\n    }\r\n  }\r\n)\r\n\r\nvar app = new Vue({\r\n  el: '#demo',\r\n  data: {\r\n    foodata: {bar: 1}\r\n  },\r\n  computed: {\r\n    foo: {\r\n      get: function() {\r\n        return this.foodata\r\n      },\r\n      set: function(data) {\r\n        this.foodata.bar = data.bar * 2\r\n      }\r\n    }\r\n  }\r\n})\r\n```\r\n\r\n```html\r\n<div id=\"demo\">\r\n  <foobar foo=\"{{@foo}}\"></foobar>\r\n</div>\r\n```\r\n\r\nWhy ```foo``` setter does not invoke when property been changed from component:\r\n\r\n```javascript\r\nthis.foo = {bar: 4}\r\n``` "},"comment":{"url":"https://api.github.com/repos/vuejs/Discussion/issues/comments/125147553","html_url":"https://github.com/vuejs/Discussion/issues/312#issuecomment-125147553","issue_url":"https://api.github.com/repos/vuejs/Discussion/issues/312","id":125147553,"user":{"login":"Darkside73","id":339596,"avatar_url":"https://avatars.githubusercontent.com/u/339596?v=3","gravatar_id":"","url":"https://api.github.com/users/Darkside73","html_url":"https://github.com/Darkside73","followers_url":"https://api.github.com/users/Darkside73/followers","following_url":"https://api.github.com/users/Darkside73/following{/other_user}","gists_url":"https://api.github.com/users/Darkside73/gists{/gist_id}","starred_url":"https://api.github.com/users/Darkside73/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Darkside73/subscriptions","organizations_url":"https://api.github.com/users/Darkside73/orgs","repos_url":"https://api.github.com/users/Darkside73/repos","events_url":"https://api.github.com/users/Darkside73/events{/privacy}","received_events_url":"https://api.github.com/users/Darkside73/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T09:41:25Z","updated_at":"2015-07-27T09:41:25Z","body":"Setter is invoked, but after assign ```foo``` property in component is not computed ```foo``` anymore"}}