{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2759","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2759/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2759/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2759/events","html_url":"https://github.com/vuejs/vue/issues/2759","id":151571078,"number":2759,"title":"display undefined","user":{"login":"chenyouxiang","id":13644435,"avatar_url":"https://avatars.githubusercontent.com/u/13644435?v=3","gravatar_id":"","url":"https://api.github.com/users/chenyouxiang","html_url":"https://github.com/chenyouxiang","followers_url":"https://api.github.com/users/chenyouxiang/followers","following_url":"https://api.github.com/users/chenyouxiang/following{/other_user}","gists_url":"https://api.github.com/users/chenyouxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/chenyouxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenyouxiang/subscriptions","organizations_url":"https://api.github.com/users/chenyouxiang/orgs","repos_url":"https://api.github.com/users/chenyouxiang/repos","events_url":"https://api.github.com/users/chenyouxiang/events{/privacy}","received_events_url":"https://api.github.com/users/chenyouxiang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-04-28T07:48:05Z","updated_at":"2016-04-28T10:58:44Z","closed_at":"2016-04-28T07:50:31Z","body":"when data like this\r\ndata:{\r\n   item:{}\r\n}\r\nthen bind v-model=\"item.id\" display \"undefined\"\r\ni think display empty string is right"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/215388777","html_url":"https://github.com/vuejs/vue/issues/2759#issuecomment-215388777","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2759","id":215388777,"user":{"login":"azamat-sharapov","id":3023661,"avatar_url":"https://avatars.githubusercontent.com/u/3023661?v=3","gravatar_id":"","url":"https://api.github.com/users/azamat-sharapov","html_url":"https://github.com/azamat-sharapov","followers_url":"https://api.github.com/users/azamat-sharapov/followers","following_url":"https://api.github.com/users/azamat-sharapov/following{/other_user}","gists_url":"https://api.github.com/users/azamat-sharapov/gists{/gist_id}","starred_url":"https://api.github.com/users/azamat-sharapov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azamat-sharapov/subscriptions","organizations_url":"https://api.github.com/users/azamat-sharapov/orgs","repos_url":"https://api.github.com/users/azamat-sharapov/repos","events_url":"https://api.github.com/users/azamat-sharapov/events{/privacy}","received_events_url":"https://api.github.com/users/azamat-sharapov/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T10:58:44Z","updated_at":"2016-04-28T10:58:44Z","body":"@chenyouxiang Vue.js does not try to solve all issues, it's goal is to be lightweight. You can create small helper function to convert `undefined` into empty string:\r\n```\r\nfunction get (object, prop) {\r\n  if (typeof object[prop] !== 'undefined') {\r\n    return object[prop]\r\n  }\r\n  return ''\r\n}\r\n```\r\n\r\nNote, that it's recommended to define all properties in you `data` for better maintainability and reactivity."}}