{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/1293","labels_url":"https://api.github.com/repos/angular/angular/issues/1293/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/1293/comments","events_url":"https://api.github.com/repos/angular/angular/issues/1293/events","html_url":"https://github.com/angular/angular/issues/1293","id":67617183,"number":1293,"title":"Listing directives in @View is verbose (especially for common / easy cases)","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},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20core/view/compiler","name":"comp: core/view/compiler","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/effort1:%20easy%20(hour)","name":"effort1: easy (hour)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/hotlist:%20GT","name":"hotlist: GT","color":"d4c5f9"},{"url":"https://api.github.com/repos/angular/angular/labels/P2:%20required","name":"P2: required","color":"fad8c7"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20feature","name":"type: feature","color":"EEEEEE"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/36","html_url":"https://github.com/angular/angular/milestones/alpha-28","labels_url":"https://api.github.com/repos/angular/angular/milestones/36/labels","id":1140762,"number":36,"title":"alpha-28","description":"Next milestone. Work on all issues to complete by Monday June 22 @ 8am PT; sync internal/external by 24th.","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":42,"closed_issues":15,"state":"open","created_at":"2015-05-29T21:53:22Z","updated_at":"2015-06-15T20:48:20Z","due_on":"2015-06-22T07:00:00Z","closed_at":null},"comments":21,"created_at":"2015-04-10T15:13:56Z","updated_at":"2015-06-15T21:06:30Z","closed_at":null,"body":"As of today one needs to enumerate all the directives used by a given `@View`. This is very verbose and repetitive process, especially for simpler cases / components where one uses only standard / built-in directives.\r\n\r\nAssuming that I'm building a simple components that only consumes built-in directives I need to write:\r\n\r\n```javascript\r\nimport {Component, Template, bootstrap} from 'angular2/angular2';\r\nimport {If} from 'angular2/angular2';\r\n\r\n@Component({\r\n....\r\n})\r\n@View({\r\n  inline: '...',\r\n  directives: [If]\r\n})\r\nclass Simple {\r\n...\r\n}\r\n``` \r\n\r\nIn a nutshell it means that for every directive I need to:\r\n* import it\r\n* reference in `directives`\r\n\r\nWhile I understand the benefits of this approach as well as technical limitations here, it is still very repetitive in practice, especially for very often (application-wide) directives (built-ins, directives used in most of the pages, etc.).\r\n\r\nHere are few ideas of how to make it easier on people:\r\n* allow omit `directives` and assume that all built-in directives are available\r\n* allow omit `directives` and assume that all directives specified by an app developer are available\r\n\r\nThis is not urgent / critical piece but would make things significantly easier on people."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/112212373","html_url":"https://github.com/angular/angular/issues/1293#issuecomment-112212373","issue_url":"https://api.github.com/repos/angular/angular/issues/1293","id":112212373,"user":{"login":"un33k","id":407537,"avatar_url":"https://avatars.githubusercontent.com/u/407537?v=3","gravatar_id":"","url":"https://api.github.com/users/un33k","html_url":"https://github.com/un33k","followers_url":"https://api.github.com/users/un33k/followers","following_url":"https://api.github.com/users/un33k/following{/other_user}","gists_url":"https://api.github.com/users/un33k/gists{/gist_id}","starred_url":"https://api.github.com/users/un33k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/un33k/subscriptions","organizations_url":"https://api.github.com/users/un33k/orgs","repos_url":"https://api.github.com/users/un33k/repos","events_url":"https://api.github.com/users/un33k/events{/privacy}","received_events_url":"https://api.github.com/users/un33k/received_events","type":"User","site_admin":false},"created_at":"2015-06-15T21:06:30Z","updated_at":"2015-06-15T21:06:30Z","body":"https://github.com/angular/angular/issues/1293#issuecomment-105691051"}}