{"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":7,"created_at":"2016-02-05T09:21:28Z","updated_at":"2016-02-28T17:52:15Z","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/189914563","html_url":"https://github.com/angular/angular/issues/6904#issuecomment-189914563","issue_url":"https://api.github.com/repos/angular/angular/issues/6904","id":189914563,"user":{"login":"nupplaphil","id":379654,"avatar_url":"https://avatars.githubusercontent.com/u/379654?v=3","gravatar_id":"","url":"https://api.github.com/users/nupplaphil","html_url":"https://github.com/nupplaphil","followers_url":"https://api.github.com/users/nupplaphil/followers","following_url":"https://api.github.com/users/nupplaphil/following{/other_user}","gists_url":"https://api.github.com/users/nupplaphil/gists{/gist_id}","starred_url":"https://api.github.com/users/nupplaphil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nupplaphil/subscriptions","organizations_url":"https://api.github.com/users/nupplaphil/orgs","repos_url":"https://api.github.com/users/nupplaphil/repos","events_url":"https://api.github.com/users/nupplaphil/events{/privacy}","received_events_url":"https://api.github.com/users/nupplaphil/received_events","type":"User","site_admin":false},"created_at":"2016-02-28T17:52:14Z","updated_at":"2016-02-28T17:52:14Z","body":"I stepped through the BrowserDomAdapter and found out that when I try to set DOM with \"BrowserDomAdapter.makeCurrent()\", the DOM was leaving \"undefined\".\r\n\r\nThe strange thing is that the isBlank method in the \"setRootDomAdapter\" gets the BrowserDomAdapter as parameter so returned \"false\" (meaning DOM is already set). But outside, the DOM was undefined so nothing was set.\r\n\r\nMaybe a scope problem during the initialization?"}}