{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6904","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/6904/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6904/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6904/events","html_url":"https://github.com/angular/angular/issues/6904","id":131593338,"number":6904,"title":"DOM is not initialized","user":{"login":"zoechi","id":405837,"avatar_url":"https://avatars.githubusercontent.com/u/405837?v=3","gravatar_id":"","url":"https://api.github.com/users/zoechi","html_url":"https://github.com/zoechi","followers_url":"https://api.github.com/users/zoechi/followers","following_url":"https://api.github.com/users/zoechi/following{/other_user}","gists_url":"https://api.github.com/users/zoechi/gists{/gist_id}","starred_url":"https://api.github.com/users/zoechi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoechi/subscriptions","organizations_url":"https://api.github.com/users/zoechi/orgs","repos_url":"https://api.github.com/users/zoechi/repos","events_url":"https://api.github.com/users/zoechi/events{/privacy}","received_events_url":"https://api.github.com/users/zoechi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-05T09:21:28Z","updated_at":"2016-02-05T10:37:38Z","closed_at":null,"body":"http://plnkr.co/edit/1LImWdksAoHEuJE8CKFT?p=preview\r\n\r\nThis works fine in Dart but in this Plunker `DOM` is not initialized.\r\n\r\nIt should be initialized by the `PLATFORM_INITIALIZER`\r\nhttps://github.com/angular/angular/blob/e1bf3d33f8a1fa05a832b9b7ee1300ef9862fd0b/modules/angular2/src/platform/browser_common.ts#L91  \r\nusing   https://github.com/angular/angular/blob/2c8fcec432ce352d6d514304445dd06a29aed364/modules/angular2/src/core/dom/dom_adapter.ts#L5\r\n\r\nDoes this need some additional step to get it initialized in TS?"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/180288860","html_url":"https://github.com/angular/angular/issues/6904#issuecomment-180288860","issue_url":"https://api.github.com/repos/angular/angular/issues/6904","id":180288860,"user":{"login":"qdouble","id":10415224,"avatar_url":"https://avatars.githubusercontent.com/u/10415224?v=3","gravatar_id":"","url":"https://api.github.com/users/qdouble","html_url":"https://github.com/qdouble","followers_url":"https://api.github.com/users/qdouble/followers","following_url":"https://api.github.com/users/qdouble/following{/other_user}","gists_url":"https://api.github.com/users/qdouble/gists{/gist_id}","starred_url":"https://api.github.com/users/qdouble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qdouble/subscriptions","organizations_url":"https://api.github.com/users/qdouble/orgs","repos_url":"https://api.github.com/users/qdouble/repos","events_url":"https://api.github.com/users/qdouble/events{/privacy}","received_events_url":"https://api.github.com/users/qdouble/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T10:37:38Z","updated_at":"2016-02-05T10:37:38Z","body":"@PascalPrecht that method works for listening to window events, but what if you need to set scrolling? Looking for a web worker safe solution."}}