{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/1566","labels_url":"https://api.github.com/repos/angular/angular/issues/1566/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/1566/comments","events_url":"https://api.github.com/repos/angular/angular/issues/1566/events","html_url":"https://github.com/angular/angular/issues/1566","id":71424371,"number":1566,"title":"DynamicComponents do not respect injectables property","user":{"login":"TedSander","id":5643740,"avatar_url":"https://avatars.githubusercontent.com/u/5643740?v=3","gravatar_id":"","url":"https://api.github.com/users/TedSander","html_url":"https://github.com/TedSander","followers_url":"https://api.github.com/users/TedSander/followers","following_url":"https://api.github.com/users/TedSander/following{/other_user}","gists_url":"https://api.github.com/users/TedSander/gists{/gist_id}","starred_url":"https://api.github.com/users/TedSander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TedSander/subscriptions","organizations_url":"https://api.github.com/users/TedSander/orgs","repos_url":"https://api.github.com/users/TedSander/repos","events_url":"https://api.github.com/users/TedSander/events{/privacy}","received_events_url":"https://api.github.com/users/TedSander/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/%E2%99%A5%20GT","name":"♥ GT","color":"e11d21"},{"url":"https://api.github.com/repos/angular/angular/labels/%E2%99%A5%20Ionic","name":"♥ Ionic","color":"207de5"}],"state":"open","locked":false,"assignee":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/23","html_url":"https://github.com/angular/angular/milestones/M8:%20GT%20Customer%20(non-blocking)","labels_url":"https://api.github.com/repos/angular/angular/milestones/23/labels","id":1054731,"number":23,"title":"M8: GT Customer (non-blocking)","description":"","creator":{"login":"mhevery","id":111951,"avatar_url":"https://avatars.githubusercontent.com/u/111951?v=3","gravatar_id":"","url":"https://api.github.com/users/mhevery","html_url":"https://github.com/mhevery","followers_url":"https://api.github.com/users/mhevery/followers","following_url":"https://api.github.com/users/mhevery/following{/other_user}","gists_url":"https://api.github.com/users/mhevery/gists{/gist_id}","starred_url":"https://api.github.com/users/mhevery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhevery/subscriptions","organizations_url":"https://api.github.com/users/mhevery/orgs","repos_url":"https://api.github.com/users/mhevery/repos","events_url":"https://api.github.com/users/mhevery/events{/privacy}","received_events_url":"https://api.github.com/users/mhevery/received_events","type":"User","site_admin":false},"open_issues":23,"closed_issues":35,"state":"open","created_at":"2015-04-06T16:59:20Z","updated_at":"2015-05-02T07:22:50Z","due_on":"2015-05-05T07:00:00Z","closed_at":null},"comments":4,"created_at":"2015-04-27T22:56:16Z","updated_at":"2015-05-02T09:16:22Z","closed_at":null,"body":"DynamicComponent annotation has it's own injectables property which gets parsed separately from Component annotations. This information later gets dropped in DirectiveMetadataReader as only Component is checked:\r\n\r\nhttps://github.com/angular/angular/blob/3667854a8f7a9f84c56c2e69aad0a804a0b52739/modules/angular2/src/core/compiler/directive_metadata_reader.js#L17"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/98337688","html_url":"https://github.com/angular/angular/issues/1566#issuecomment-98337688","issue_url":"https://api.github.com/repos/angular/angular/issues/1566","id":98337688,"user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"created_at":"2015-05-02T09:16:22Z","updated_at":"2015-05-02T09:16:22Z","body":"@TedSander just to be sure that I understand your use-case, could you please have a look at this (failing) test and confirm that this is what you are trying to do: https://github.com/pkozlowski-opensource/angular/commit/1e554f91a3c4112a297d950072b23678712fa301 ?\r\n\r\n@tbosch I wonder how we should treat injectables from the dynamic components: shell we make them available to dynamically loaded components as requested in this issue?"}}