{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vuejs.org/issues/1465","repository_url":"https://api.github.com/repos/vuejs/vuejs.org","labels_url":"https://api.github.com/repos/vuejs/vuejs.org/issues/1465/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vuejs.org/issues/1465/comments","events_url":"https://api.github.com/repos/vuejs/vuejs.org/issues/1465/events","html_url":"https://github.com/vuejs/vuejs.org/issues/1465","id":301939668,"number":1465,"title":"Components #Compilation Scope example is not replicable?","user":{"login":"Hacktivista","id":5282749,"avatar_url":"https://avatars0.githubusercontent.com/u/5282749?v=4","gravatar_id":"","url":"https://api.github.com/users/Hacktivista","html_url":"https://github.com/Hacktivista","followers_url":"https://api.github.com/users/Hacktivista/followers","following_url":"https://api.github.com/users/Hacktivista/following{/other_user}","gists_url":"https://api.github.com/users/Hacktivista/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacktivista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacktivista/subscriptions","organizations_url":"https://api.github.com/users/Hacktivista/orgs","repos_url":"https://api.github.com/users/Hacktivista/repos","events_url":"https://api.github.com/users/Hacktivista/events{/privacy}","received_events_url":"https://api.github.com/users/Hacktivista/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-02T23:36:59Z","updated_at":"2018-03-18T19:45:35Z","closed_at":null,"author_association":"NONE","body":"I had a bad time trying to replicate the example on [v2/guide/components.html#Compilation-Scope](https://vuejs.org/v2/guide/components.html#Compilation-Scope)\r\n\r\n> Imagine a template like this:\r\n> \r\n> ```\r\n> <child-component>\r\n>   {{ message }}\r\n> </child-component>\r\n> ```\r\n> \r\n> Should the message be bound to the parent’s data or the child data? The answer is the parent.\r\n\r\nAs explicitly mentioned on the [next subsection](https://vuejs.org/v2/guide/components.html#Single-Slot)\r\n\r\n> Parent content will be discarded unless the child component template contains at least one `<slot>` outlet\r\n\r\nSo if I try to do what the example suggests (Check here: https://jsfiddle.net/vrdx4d43/) I will obtain the contents of the child, not parent's content. If I do add an slot I will see both, so, the example cannot be replicated? If so, I think is not a good example, in any case it's confusing to me."},"comment":{"url":"https://api.github.com/repos/vuejs/vuejs.org/issues/comments/374038479","html_url":"https://github.com/vuejs/vuejs.org/issues/1465#issuecomment-374038479","issue_url":"https://api.github.com/repos/vuejs/vuejs.org/issues/1465","id":374038479,"user":{"login":"Hacktivista","id":5282749,"avatar_url":"https://avatars0.githubusercontent.com/u/5282749?v=4","gravatar_id":"","url":"https://api.github.com/users/Hacktivista","html_url":"https://github.com/Hacktivista","followers_url":"https://api.github.com/users/Hacktivista/followers","following_url":"https://api.github.com/users/Hacktivista/following{/other_user}","gists_url":"https://api.github.com/users/Hacktivista/gists{/gist_id}","starred_url":"https://api.github.com/users/Hacktivista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hacktivista/subscriptions","organizations_url":"https://api.github.com/users/Hacktivista/orgs","repos_url":"https://api.github.com/users/Hacktivista/repos","events_url":"https://api.github.com/users/Hacktivista/events{/privacy}","received_events_url":"https://api.github.com/users/Hacktivista/received_events","type":"User","site_admin":false},"created_at":"2018-03-18T19:45:35Z","updated_at":"2018-03-18T19:45:35Z","author_association":"NONE","body":"The problem is that the affirmation \"Parent content will be discarded\" contradicts the affirmation \"The answer is the parent\" (and thus make the whole \"Compilation Scope\" subsection invalid).\r\n\r\nThe new \"Compilation Scope\" subsection is clearer."}}
{"actor":{"display_login":"Hacktivista"}}