{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2034","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2034/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2034/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2034/events","html_url":"https://github.com/vuejs/vue/issues/2034","id":122518490,"number":2034,"title":"Access $data inside slot fallback","user":{"login":"eduardostuart","id":767879,"avatar_url":"https://avatars.githubusercontent.com/u/767879?v=3","gravatar_id":"","url":"https://api.github.com/users/eduardostuart","html_url":"https://github.com/eduardostuart","followers_url":"https://api.github.com/users/eduardostuart/followers","following_url":"https://api.github.com/users/eduardostuart/following{/other_user}","gists_url":"https://api.github.com/users/eduardostuart/gists{/gist_id}","starred_url":"https://api.github.com/users/eduardostuart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduardostuart/subscriptions","organizations_url":"https://api.github.com/users/eduardostuart/orgs","repos_url":"https://api.github.com/users/eduardostuart/repos","events_url":"https://api.github.com/users/eduardostuart/events{/privacy}","received_events_url":"https://api.github.com/users/eduardostuart/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-16T14:42:32Z","updated_at":"2015-12-16T15:20:38Z","closed_at":null,"body":"Is possible to access parent $data inside slot fallback?\r\n\r\n\r\nComponent example:\r\n```vue\r\n<template>\r\n    <div class=\"mycomponent\">\r\n        <slot></slot>\r\n    </div>\r\n</template>\r\n<script>\r\nmodule.exports = {\r\n    data:function(){\r\n        return {\r\n            something: 'cool'\r\n        };\r\n    }\r\n};\r\n</script>\r\n```\r\n\r\nExample (Can I do this?)\r\n```html\r\n<mycomponent>\r\n    {{ $data | json }} or {{ $parent.$data | json }}\r\n</mycomponent>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/165138926","html_url":"https://github.com/vuejs/vue/issues/2034#issuecomment-165138926","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2034","id":165138926,"user":{"login":"eduardostuart","id":767879,"avatar_url":"https://avatars.githubusercontent.com/u/767879?v=3","gravatar_id":"","url":"https://api.github.com/users/eduardostuart","html_url":"https://github.com/eduardostuart","followers_url":"https://api.github.com/users/eduardostuart/followers","following_url":"https://api.github.com/users/eduardostuart/following{/other_user}","gists_url":"https://api.github.com/users/eduardostuart/gists{/gist_id}","starred_url":"https://api.github.com/users/eduardostuart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eduardostuart/subscriptions","organizations_url":"https://api.github.com/users/eduardostuart/orgs","repos_url":"https://api.github.com/users/eduardostuart/repos","events_url":"https://api.github.com/users/eduardostuart/events{/privacy}","received_events_url":"https://api.github.com/users/eduardostuart/received_events","type":"User","site_admin":false},"created_at":"2015-12-16T15:20:38Z","updated_at":"2015-12-16T15:20:38Z","body":"I saw that..but, how can I access $data inside slot `fallback`? \r\n\r\n```\r\nAnything originally inside the <slot> tags is considered fallback content. Fallback content is compiled in the child scope and will only be displayed if the hosting element is empty and has no content to be inserted.\r\n```\r\n\r\nI can do this:\r\n```vue\r\n<template>\r\n    <div class=\"mycomponent\">\r\n        <slot>{{ $data | json }}</slot>\r\n    </div>\r\n</template>\r\n<script>\r\nmodule.exports = {\r\n    data:function(){\r\n        return {\r\n            something: 'cool'\r\n        };\r\n    }\r\n};\r\n</script>\r\n```\r\n\r\nBut..can't do inside slot `fallback`. Even if I try to $parent $data.\r\n"}}