{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/1747","labels_url":"https://api.github.com/repos/angular/angular/issues/1747/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/1747/comments","events_url":"https://api.github.com/repos/angular/angular/issues/1747/events","html_url":"https://github.com/angular/angular/issues/1747","id":74124768,"number":1747,"title":"Support Directive dependency aliases","user":{"login":"kegluneq","id":613610,"avatar_url":"https://avatars.githubusercontent.com/u/613610?v=3","gravatar_id":"","url":"https://api.github.com/users/kegluneq","html_url":"https://github.com/kegluneq","followers_url":"https://api.github.com/users/kegluneq/followers","following_url":"https://api.github.com/users/kegluneq/following{/other_user}","gists_url":"https://api.github.com/users/kegluneq/gists{/gist_id}","starred_url":"https://api.github.com/users/kegluneq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kegluneq/subscriptions","organizations_url":"https://api.github.com/users/kegluneq/orgs","repos_url":"https://api.github.com/users/kegluneq/repos","events_url":"https://api.github.com/users/kegluneq/events{/privacy}","received_events_url":"https://api.github.com/users/kegluneq/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core/directives","name":"comp: core/directives","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/effort2:%20medium%20(day)","name":"effort2: medium (day)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/P3:%20important","name":"P3: important","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20feature","name":"type: feature","color":"EEEEEE"}],"state":"open","locked":false,"assignee":{"login":"sigmundch","id":2049220,"avatar_url":"https://avatars.githubusercontent.com/u/2049220?v=3","gravatar_id":"","url":"https://api.github.com/users/sigmundch","html_url":"https://github.com/sigmundch","followers_url":"https://api.github.com/users/sigmundch/followers","following_url":"https://api.github.com/users/sigmundch/following{/other_user}","gists_url":"https://api.github.com/users/sigmundch/gists{/gist_id}","starred_url":"https://api.github.com/users/sigmundch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sigmundch/subscriptions","organizations_url":"https://api.github.com/users/sigmundch/orgs","repos_url":"https://api.github.com/users/sigmundch/repos","events_url":"https://api.github.com/users/sigmundch/events{/privacy}","received_events_url":"https://api.github.com/users/sigmundch/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/41","html_url":"https://github.com/angular/angular/milestones/alpha-33","labels_url":"https://api.github.com/repos/angular/angular/milestones/41/labels","id":1205895,"number":41,"title":"alpha-33","description":"Future milestone.  Work on all issues to complete by Monday July 27 @ 8am PT; sync internal/external by July 29 EOD.","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":35,"closed_issues":4,"state":"open","created_at":"2015-07-13T20:39:21Z","updated_at":"2015-07-21T21:39:49Z","due_on":"2015-07-27T07:00:00Z","closed_at":null},"comments":11,"created_at":"2015-05-07T20:53:52Z","updated_at":"2015-07-21T22:54:20Z","closed_at":null,"body":"I had a request for `directive` aliases, for example:\r\n\r\nshared.js\r\n```\r\nexport SHARED_DEPS = [Dep1, Dep2, Dep3];\r\n```\r\n\r\ncomponent1.js\r\n```\r\nimport {SHARED_DEPS} from 'shared.js';\r\n\r\n@Component({...})\r\n@View({directives: SHARED_DEPS})\r\nclass Component1 {...}\r\n```\r\n\r\ncomponent2.js\r\n```\r\nimport {SHARED_DEPS} from 'shared.js';\r\nimport {AdditionalDep} from 'component2_deps.js';\r\n\r\n@Component({...})\r\n@View({directives: [SHARED_DEPS, AdditionalDep]})\r\nclass Component2 {...}\r\n```\r\n  \r\n`Component1` would depend on `Dep1`, `Dep2`, and `Dep3`, while `Component2` would be those as well as `AdditionalDep`.\r\n\r\n\r\n@yjbanov , @mhevery , does Angular 2 Js already support this?"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/123502568","html_url":"https://github.com/angular/angular/issues/1747#issuecomment-123502568","issue_url":"https://api.github.com/repos/angular/angular/issues/1747","id":123502568,"user":{"login":"kegluneq","id":613610,"avatar_url":"https://avatars.githubusercontent.com/u/613610?v=3","gravatar_id":"","url":"https://api.github.com/users/kegluneq","html_url":"https://github.com/kegluneq","followers_url":"https://api.github.com/users/kegluneq/followers","following_url":"https://api.github.com/users/kegluneq/following{/other_user}","gists_url":"https://api.github.com/users/kegluneq/gists{/gist_id}","starred_url":"https://api.github.com/users/kegluneq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kegluneq/subscriptions","organizations_url":"https://api.github.com/users/kegluneq/orgs","repos_url":"https://api.github.com/users/kegluneq/repos","events_url":"https://api.github.com/users/kegluneq/events{/privacy}","received_events_url":"https://api.github.com/users/kegluneq/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T22:54:20Z","updated_at":"2015-07-21T22:54:20Z","body":"As part of this fix, please update the message changed in https://github.com/angular/angular/pull/3153 to reflect the new reality of directive aliases.\r\n\r\nThanks!"}}