{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/2383","labels_url":"https://api.github.com/repos/angular/angular/issues/2383/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/2383/comments","events_url":"https://api.github.com/repos/angular/angular/issues/2383/events","html_url":"https://github.com/angular/angular/issues/2383","id":85639418,"number":2383,"title":"Relative URL support in annotations","user":{"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},"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/effort3:%20hard%20(week)","name":"effort3: hard (week)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/hotlist:%20beta","name":"hotlist: beta","color":"d4c5f9"},{"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/P1:%20urgent","name":"P1: urgent","color":"eb6420"},{"url":"https://api.github.com/repos/angular/angular/labels/state:%20Needs%20Design","name":"state: Needs Design","color":"006b75"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20feature","name":"type: feature","color":"EEEEEE"}],"state":"open","locked":false,"assignee":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/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":47,"closed_issues":16,"state":"open","created_at":"2015-05-29T21:53:22Z","updated_at":"2015-06-16T19:45:11Z","due_on":"2015-06-22T07:00:00Z","closed_at":null},"comments":9,"created_at":"2015-06-05T21:48:09Z","updated_at":"2015-06-16T19:57:58Z","closed_at":null,"body":"# GOAL\r\n\r\nsupport loading resources into the components in a relative way for re-usability.\r\n\r\n## JavaScript\r\n\r\nCommonJS modules standards publishes the `module.id`, which can be passed into the `@View` Annotation.\r\n\r\n```javascript\r\n@Component(...)\r\n@View({\r\n  moduleId: module.id, // commonJS standard\r\n  templateUrl: 'my-component.html',\r\n  styleUrls: ['my-component.css'] \r\n})\r\nclass MyComponent {\r\n}\r\n```\r\n\r\n## Dart\r\n\r\nIn dart the user does not have to explicitly set the `moduleId` instead we can extract the location from the library path:  `MyComponent.owner.uri.path`\r\n\r\nSee: [uri_mapper](https://github.com/angular/angular.dart/blob/f9406a4a08671307d051172953e164f1c6cd52ac/lib/core_dom/type_to_uri_mapper_dynamic.dart)\r\n\r\n## In-lining\r\n\r\nLater we could add a pre-deploy step which will inline the URLs into the annotations directly.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/112550872","html_url":"https://github.com/angular/angular/issues/2383#issuecomment-112550872","issue_url":"https://api.github.com/repos/angular/angular/issues/2383","id":112550872,"user":{"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},"created_at":"2015-06-16T19:57:58Z","updated_at":"2015-06-16T19:57:58Z","body":"@jakemac53: yes just remove for dart\r\n@choeller: I would love to drop the `module.id` from the `@View` but unfortunately, it is technically not possible. The only place where the information is stored is in the `module.id` and it is only visible to the application file. :-("}}