{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/10545","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/10545/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/10545/comments","events_url":"https://api.github.com/repos/angular/angular/issues/10545/events","html_url":"https://github.com/angular/angular/issues/10545","id":169744959,"number":10545,"title":"Constructor function syntax not working for non-bootstrap components","user":{"login":"filipesilva","id":4172079,"avatar_url":"https://avatars.githubusercontent.com/u/4172079?v=3","gravatar_id":"","url":"https://api.github.com/users/filipesilva","html_url":"https://github.com/filipesilva","followers_url":"https://api.github.com/users/filipesilva/followers","following_url":"https://api.github.com/users/filipesilva/following{/other_user}","gists_url":"https://api.github.com/users/filipesilva/gists{/gist_id}","starred_url":"https://api.github.com/users/filipesilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filipesilva/subscriptions","organizations_url":"https://api.github.com/users/filipesilva/orgs","repos_url":"https://api.github.com/users/filipesilva/repos","events_url":"https://api.github.com/users/filipesilva/events{/privacy}","received_events_url":"https://api.github.com/users/filipesilva/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/65","html_url":"https://github.com/angular/angular/milestones/2.0.0-rc.6","labels_url":"https://api.github.com/repos/angular/angular/milestones/65/labels","id":1932870,"number":65,"title":"2.0.0-rc.6","description":"","creator":{"login":"naomiblack","id":2286589,"avatar_url":"https://avatars.githubusercontent.com/u/2286589?v=3","gravatar_id":"","url":"https://api.github.com/users/naomiblack","html_url":"https://github.com/naomiblack","followers_url":"https://api.github.com/users/naomiblack/followers","following_url":"https://api.github.com/users/naomiblack/following{/other_user}","gists_url":"https://api.github.com/users/naomiblack/gists{/gist_id}","starred_url":"https://api.github.com/users/naomiblack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naomiblack/subscriptions","organizations_url":"https://api.github.com/users/naomiblack/orgs","repos_url":"https://api.github.com/users/naomiblack/repos","events_url":"https://api.github.com/users/naomiblack/events{/privacy}","received_events_url":"https://api.github.com/users/naomiblack/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":2,"state":"open","created_at":"2016-08-09T17:23:20Z","updated_at":"2016-08-10T15:27:49Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-08-06T12:37:09Z","updated_at":"2016-08-10T16:35:50Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[x] bug report\r\n```\r\n\r\n**Current behavior**\r\n\r\nWhen adding a component to the NgModule declaration array, if that component's constructor is a function (`constructor: function() {}`), the component is not added to the module.\r\n\r\nEverything is fine if the array notation for the constructor is used though (`constructor: [function() {}]`).\r\n\r\n**Expected/desired behavior**\r\nUsing a function as a constructor should be supported.\r\n\r\n**Reproduction of the problem**\r\nhttp://plnkr.co/edit/kuz9JlBLWUXaUDWtCn0s?p=preview (edited)\r\nThe only difference between `HeroComponent` and `VillainComponent` is how the constructors are declared, but `HeroComponent` does not show.\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nA function was a supported way of declaring a component constructor in RC4, and it still works for bootstrap components.\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.0-rc.5\r\n \r\n* **Browser:** Chrome 52\r\n \r\n* **Language:** ES5\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/238924984","html_url":"https://github.com/angular/angular/issues/10545#issuecomment-238924984","issue_url":"https://api.github.com/repos/angular/angular/issues/10545","id":238924984,"user":{"login":"wardbell","id":129061,"avatar_url":"https://avatars.githubusercontent.com/u/129061?v=3","gravatar_id":"","url":"https://api.github.com/users/wardbell","html_url":"https://github.com/wardbell","followers_url":"https://api.github.com/users/wardbell/followers","following_url":"https://api.github.com/users/wardbell/following{/other_user}","gists_url":"https://api.github.com/users/wardbell/gists{/gist_id}","starred_url":"https://api.github.com/users/wardbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wardbell/subscriptions","organizations_url":"https://api.github.com/users/wardbell/orgs","repos_url":"https://api.github.com/users/wardbell/repos","events_url":"https://api.github.com/users/wardbell/events{/privacy}","received_events_url":"https://api.github.com/users/wardbell/received_events","type":"User","site_admin":false},"created_at":"2016-08-10T16:35:50Z","updated_at":"2016-08-10T16:35:50Z","body":"To be clear, this is for apps written in JS using the DSL not TS, right? "}}
{"actor":{"display_login":"wardbell"}}