{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/7627","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/7627/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/7627/comments","events_url":"https://api.github.com/repos/angular/angular/issues/7627/events","html_url":"https://github.com/angular/angular/issues/7627","id":141344624,"number":7627,"title":"DI for inherited class","user":{"login":"klinki","id":1476175,"avatar_url":"https://avatars.githubusercontent.com/u/1476175?v=3","gravatar_id":"","url":"https://api.github.com/users/klinki","html_url":"https://github.com/klinki","followers_url":"https://api.github.com/users/klinki/followers","following_url":"https://api.github.com/users/klinki/following{/other_user}","gists_url":"https://api.github.com/users/klinki/gists{/gist_id}","starred_url":"https://api.github.com/users/klinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klinki/subscriptions","organizations_url":"https://api.github.com/users/klinki/orgs","repos_url":"https://api.github.com/users/klinki/repos","events_url":"https://api.github.com/users/klinki/events{/privacy}","received_events_url":"https://api.github.com/users/klinki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-16T17:26:43Z","updated_at":"2016-03-16T17:26:43Z","closed_at":null,"body":"**Note: for support questions, please use one of these channels:** https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question. This repository's issues are reserved for feature requests and bug reports.\r\n\r\n* **I'm submitting a ... **\r\n[x] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, see note at the top of this template.\r\n\r\n\r\n* **Do you want to request a *feature* or report a *bug*?**\r\n\r\nReport a bug\r\n\r\n* **What is the current behavior?**\r\n\r\nHi, I just found a bug when TypeScript inheritance is used.\r\n\r\nScenario:\r\n\r\n```\r\nclass A {\r\n    constructor(lots of dependencies here....) {}\r\n}\r\n\r\n\r\n@Injectable()\r\nclass B  extends A {}\r\n```\r\n\r\nWhen class B does not have a constructor, dependencies are not properly injected.\r\n\r\nBut when you provide a constructor which calls the parent constructor:\r\n\r\n```\r\n@Injectable()\r\nclass B  extends A {\r\n constructor(lots of dependencies here....) {\r\n    super(lots of dependencies here...);\r\n  }\r\n}\r\n```\r\neverything works fine. \r\n\r\n* **Please tell us about your environment:**\r\n\r\n- Angular version: 2.0.0-beta.9\r\n- Browser: [Chrome 48 ]\r\n- Language: [TypeScript 1.8]\r\n\r\n\r\n\r\n* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)\r\n"}}