{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/1992","labels_url":"https://api.github.com/repos/angular/angular/issues/1992/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/1992/comments","events_url":"https://api.github.com/repos/angular/angular/issues/1992/events","html_url":"https://github.com/angular/angular/issues/1992","id":78191599,"number":1992,"title":"ElementProbe API","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/%E2%99%A5%20GT","name":"♥ GT","color":"e11d21"}],"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/34","html_url":"https://github.com/angular/angular/milestones/M9:%20TypeScript%20and%20Build%20Stability","labels_url":"https://api.github.com/repos/angular/angular/milestones/34/labels","id":1119022,"number":34,"title":"M9: TypeScript and Build Stability","description":"*Goal*: Remove dependency on Traceur, Improve Build Stability, and P1 issues\r\n[Tracker](https://docs.google.com/spreadsheets/d/1PA8dDCt6s2S5l6XXkks0FuGNKxVuHUQQGKQby1k9lZ8/edit#gid=0)","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":27,"closed_issues":29,"state":"open","created_at":"2015-05-19T18:36:18Z","updated_at":"2015-05-26T22:39:24Z","due_on":"2015-05-26T07:00:00Z","closed_at":null},"comments":2,"created_at":"2015-05-19T18:02:48Z","updated_at":"2015-05-26T22:48:02Z","closed_at":null,"body":"# GOAL\r\n\r\n- simplify debugging in the browser, by allowing adhoc access to the content of the `ElementInjector` in the dev mode\r\n\r\n## API\r\n\r\n```javascript\r\nwindow.ngProbe(element:Element) => Probe.fromElement(element);\r\n\r\nclass Probe {\r\n  static fromElement(element: Element): Probe;\r\n\r\n  get element():Element;\r\n  get component():any;\r\n  get context():any;\r\n  get directives():List<any>;\r\n  get(type:Type, visibility?): any;\r\n}\r\n```\r\n\r\n## Implementation\r\n\r\nIn the debug mode only (perf reasons) Angular should use expandos to attach the `ElementInjector` to the DOM Element. The developer can than use the API to get a `Probe` which wraps the `ElementInjector` and allows the user to retrieve the components at that location.\r\n\r\n## Tests\r\n\r\nThis should be enabled by default in tests."},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/105690584","html_url":"https://github.com/angular/angular/issues/1992#issuecomment-105690584","issue_url":"https://api.github.com/repos/angular/angular/issues/1992","id":105690584,"user":{"login":"juliemr","id":2081709,"avatar_url":"https://avatars.githubusercontent.com/u/2081709?v=3","gravatar_id":"","url":"https://api.github.com/users/juliemr","html_url":"https://github.com/juliemr","followers_url":"https://api.github.com/users/juliemr/followers","following_url":"https://api.github.com/users/juliemr/following{/other_user}","gists_url":"https://api.github.com/users/juliemr/gists{/gist_id}","starred_url":"https://api.github.com/users/juliemr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliemr/subscriptions","organizations_url":"https://api.github.com/users/juliemr/orgs","repos_url":"https://api.github.com/users/juliemr/repos","events_url":"https://api.github.com/users/juliemr/events{/privacy}","received_events_url":"https://api.github.com/users/juliemr/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T22:48:02Z","updated_at":"2015-05-26T22:48:02Z","body":"How will this relate to #1812, and the `TestElement` used there?"}}