{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6968","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/6968/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6968/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6968/events","html_url":"https://github.com/angular/angular/issues/6968","id":132389778,"number":6968,"title":"ng-content throwing a \"The component <app> has 1 <ng-content> elements, but only 0 slots were provided.\"","user":{"login":"chrissheppard41","id":3405621,"avatar_url":"https://avatars.githubusercontent.com/u/3405621?v=3","gravatar_id":"","url":"https://api.github.com/users/chrissheppard41","html_url":"https://github.com/chrissheppard41","followers_url":"https://api.github.com/users/chrissheppard41/followers","following_url":"https://api.github.com/users/chrissheppard41/following{/other_user}","gists_url":"https://api.github.com/users/chrissheppard41/gists{/gist_id}","starred_url":"https://api.github.com/users/chrissheppard41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrissheppard41/subscriptions","organizations_url":"https://api.github.com/users/chrissheppard41/orgs","repos_url":"https://api.github.com/users/chrissheppard41/repos","events_url":"https://api.github.com/users/chrissheppard41/events{/privacy}","received_events_url":"https://api.github.com/users/chrissheppard41/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T11:00:07Z","updated_at":"2016-06-16T08:16:49Z","closed_at":"2016-06-16T08:16:49Z","body":"Hi all.\r\n\r\nI've asked this question here: http://stackoverflow.com/questions/35274885/can-you-have-a-stand-alone-directive-in-angular-2\r\n\r\nIt came down to using <ng-content> within a component, but it's throwing an error:\r\n\r\n> The component Slider has 1 <ng-content> elements, but only 0 slots were provided.\r\n\r\n\r\nSlider.ts\r\n\r\n```\r\nimport {Component, View, ElementRef} from 'angular2/core';\r\n@Component({\r\n\tselector: 'Slider',\r\n\ttemplate: '<ng-content></ng-content>'\r\n})\r\nexport class Slider {\r\n    constructor(private element: ElementRef) {\r\n        console.log('Slider');\r\n    }\r\n}\r\n```\r\n\r\nindex.html\r\n`<Slider><div>hello world</div></Slider>`\r\n\r\nIs this a bug with the system or am I writing this out wrong? The code itself within the index HTML disappears from the DOM at run time.\r\n\r\nHere is a plnkr: https://plnkr.co/UH42bVv93Fedrre7GKFI Hopefully that works for you"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/226418440","html_url":"https://github.com/angular/angular/issues/6968#issuecomment-226418440","issue_url":"https://api.github.com/repos/angular/angular/issues/6968","id":226418440,"user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T08:16:49Z","updated_at":"2016-06-16T08:16:49Z","body":"This is duplicate of #1858, see the discussion in there why it is not supported."}}
{"actor":{"display_login":"pkozlowski-opensource"}}