{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/11061","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/11061/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/11061/comments","events_url":"https://api.github.com/repos/angular/angular/issues/11061/events","html_url":"https://github.com/angular/angular/issues/11061","id":173142402,"number":11061,"title":"why import class of service in each child-component if we want to use it","user":{"login":"istiti","id":2789203,"avatar_url":"https://avatars.githubusercontent.com/u/2789203?v=3","gravatar_id":"","url":"https://api.github.com/users/istiti","html_url":"https://github.com/istiti","followers_url":"https://api.github.com/users/istiti/followers","following_url":"https://api.github.com/users/istiti/following{/other_user}","gists_url":"https://api.github.com/users/istiti/gists{/gist_id}","starred_url":"https://api.github.com/users/istiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istiti/subscriptions","organizations_url":"https://api.github.com/users/istiti/orgs","repos_url":"https://api.github.com/users/istiti/repos","events_url":"https://api.github.com/users/istiti/events{/privacy}","received_events_url":"https://api.github.com/users/istiti/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-25T08:27:41Z","updated_at":"2016-08-25T09:10:19Z","closed_at":null,"body":"I have simple question:\r\nWhy I have to import each time I need it the service file in my sub-component while I have already did it in a root component or in bootstrap ngModule...\r\n\r\nwhen in  a sub-component I put in the constructor\r\nconstructor(private dataService : DataService){}\r\nI need also import { DataService }...\r\n\r\nI thinked if we did it in a root component it will be available on their childs because I use the same instance \r\n I need more explanation maybe :santa: \r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/242325094","html_url":"https://github.com/angular/angular/issues/11061#issuecomment-242325094","issue_url":"https://api.github.com/repos/angular/angular/issues/11061","id":242325094,"user":{"login":"istiti","id":2789203,"avatar_url":"https://avatars.githubusercontent.com/u/2789203?v=3","gravatar_id":"","url":"https://api.github.com/users/istiti","html_url":"https://github.com/istiti","followers_url":"https://api.github.com/users/istiti/followers","following_url":"https://api.github.com/users/istiti/following{/other_user}","gists_url":"https://api.github.com/users/istiti/gists{/gist_id}","starred_url":"https://api.github.com/users/istiti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/istiti/subscriptions","organizations_url":"https://api.github.com/users/istiti/orgs","repos_url":"https://api.github.com/users/istiti/repos","events_url":"https://api.github.com/users/istiti/events{/privacy}","received_events_url":"https://api.github.com/users/istiti/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T09:10:19Z","updated_at":"2016-08-25T09:10:19Z","body":"@qdouble thanks, I accept you answer even if the content of yours answer is relative ! Because I can say here that I think it's bug:  in rc.5 all imported components class in root are available to their sub-components while services class import aren't WHY? And here maybe someone explain me this behavior and close the topic or as you send me to understand better programmation concept (but I already know the difference of instance....)\r\n\r\nDon't worry,  I will ask this on gitter, thanks"}}
{"actor":{"display_login":"istiti"}}