{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular/issues/27293","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/27293/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/27293/comments","events_url":"https://api.github.com/repos/angular/angular/issues/27293/events","html_url":"https://github.com/angular/angular/issues/27293","id":384857146,"node_id":"MDU6SXNzdWUzODQ4NTcxNDY=","number":27293,"title":"DI outside of constructor","user":{"login":"rafaelbatistamarcilio","id":16135328,"node_id":"MDQ6VXNlcjE2MTM1MzI4","avatar_url":"https://avatars0.githubusercontent.com/u/16135328?v=4","gravatar_id":"","url":"https://api.github.com/users/rafaelbatistamarcilio","html_url":"https://github.com/rafaelbatistamarcilio","followers_url":"https://api.github.com/users/rafaelbatistamarcilio/followers","following_url":"https://api.github.com/users/rafaelbatistamarcilio/following{/other_user}","gists_url":"https://api.github.com/users/rafaelbatistamarcilio/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelbatistamarcilio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelbatistamarcilio/subscriptions","organizations_url":"https://api.github.com/users/rafaelbatistamarcilio/orgs","repos_url":"https://api.github.com/users/rafaelbatistamarcilio/repos","events_url":"https://api.github.com/users/rafaelbatistamarcilio/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelbatistamarcilio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-27T15:43:16Z","updated_at":"2018-11-27T15:43:16Z","closed_at":null,"author_association":"NONE","body":"Hy,\r\n\r\nWhy not make properties dependency injection like @Autowired in Spring Framework and use @Inject outside of constructors?\r\n\r\nToday DI:\r\n\r\n```\r\nexport class MyComponent {\r\n     constructor(private myService: MyService, private mySecondService: MySecondService){}\r\n}\r\n```\r\n\r\nDesired DI:\r\n\r\n```\r\nexport class MyComponent {\r\n     \r\n      @Inject()\r\n      private myService: MyService;\r\n\r\n      @Inject()\r\n      private mySecondService: MySecondService;\r\n}\r\n```"}}
{"actor":{"display_login":"rafaelbatistamarcilio"}}