{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6656","labels_url":"https://api.github.com/repos/angular/angular/issues/6656/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6656/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6656/events","html_url":"https://github.com/angular/angular/issues/6656","id":128280071,"number":6656,"title":"Parent directives cant bind to @Output events of child directives included via ng-content","user":{"login":"JesusisFreedom","id":4331331,"avatar_url":"https://avatars.githubusercontent.com/u/4331331?v=3","gravatar_id":"","url":"https://api.github.com/users/JesusisFreedom","html_url":"https://github.com/JesusisFreedom","followers_url":"https://api.github.com/users/JesusisFreedom/followers","following_url":"https://api.github.com/users/JesusisFreedom/following{/other_user}","gists_url":"https://api.github.com/users/JesusisFreedom/gists{/gist_id}","starred_url":"https://api.github.com/users/JesusisFreedom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesusisFreedom/subscriptions","organizations_url":"https://api.github.com/users/JesusisFreedom/orgs","repos_url":"https://api.github.com/users/JesusisFreedom/repos","events_url":"https://api.github.com/users/JesusisFreedom/events{/privacy}","received_events_url":"https://api.github.com/users/JesusisFreedom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-23T01:02:59Z","updated_at":"2016-01-23T12:22:19Z","closed_at":null,"body":"App Component template\r\n```html\r\n<tabs>\r\n  <tab-link>Chat notification component goes here</tab-link>\r\n  <tab>Chat display component goes in here</tab>\r\n\r\n <tab-link>Other Chat notification component goes here</tab-link>\r\n  <tab>Other Chat display component goes in here</tab>\r\n</tabs>\r\n```\r\nTabs Component template\r\n```\r\n<div (tabSwitch)=\"setActiveTab($event.target)\" class=\"navigation\">\r\n  <ng-content select=\"tab-link\"></ng-content>\r\n</div>\r\n<ng-content select=\"tab\"></ng-content>\r\n```\r\nUPDATE: This is the tab-link template(I forgot to put it in the first post)\r\n```\r\n<a (click)=\"select()\" [class.active]=\"active\">\r\n <ng-content></ng-content>\r\n</a>\r\n```\r\nTab-Link Component ts\r\n```typescript\r\nexport class TabLink {\r\n  @Output('tabSwitch') tabSelected: EventEmitter<TabLink> = new EventEmitter();\r\n\r\n  select(){\r\n    this.tabSelected.emit(this);\r\n    console.log('click tab link');\r\n  }\r\n}\r\n```\r\nTabs Component ts\r\n```typescript\r\nexport class Tabs {\r\n  setActiveTab(link: TabLink):void{\r\n   console.log(\"hello\", TabLink);\r\n  }\r\n}\r\n```\r\n\r\nI would expect the setActiveTab method to fire when I click the TabLink, but nothing.\r\nI have tried moving the ```tabSwitch``` event listener around, but nothing works.\r\n\r\nAny thoughts?\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/174183007","html_url":"https://github.com/angular/angular/issues/6656#issuecomment-174183007","issue_url":"https://api.github.com/repos/angular/angular/issues/6656","id":174183007,"user":{"login":"JesusisFreedom","id":4331331,"avatar_url":"https://avatars.githubusercontent.com/u/4331331?v=3","gravatar_id":"","url":"https://api.github.com/users/JesusisFreedom","html_url":"https://github.com/JesusisFreedom","followers_url":"https://api.github.com/users/JesusisFreedom/followers","following_url":"https://api.github.com/users/JesusisFreedom/following{/other_user}","gists_url":"https://api.github.com/users/JesusisFreedom/gists{/gist_id}","starred_url":"https://api.github.com/users/JesusisFreedom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JesusisFreedom/subscriptions","organizations_url":"https://api.github.com/users/JesusisFreedom/orgs","repos_url":"https://api.github.com/users/JesusisFreedom/repos","events_url":"https://api.github.com/users/JesusisFreedom/events{/privacy}","received_events_url":"https://api.github.com/users/JesusisFreedom/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T12:22:19Z","updated_at":"2016-01-23T12:22:19Z","body":"@shlomiassaf I see. I suppose I assumed that parent components could hear what their children are saying.\r\nAlso can you point me at any examples for 1 & 2. I would love to try out all three and see how I like them.\r\nMy main issue is that the Tabs need to be pluggable. I need to be able to thrown any type of component into a tab structure."}}