{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/20491","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/20491/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/20491/comments","events_url":"https://api.github.com/repos/angular/angular/issues/20491/events","html_url":"https://github.com/angular/angular/issues/20491","id":274720817,"number":20491,"title":"After app is destroyed router keeps track of location","user":{"login":"kirill-konshin","id":1530410,"avatar_url":"https://avatars0.githubusercontent.com/u/1530410?v=4","gravatar_id":"","url":"https://api.github.com/users/kirill-konshin","html_url":"https://github.com/kirill-konshin","followers_url":"https://api.github.com/users/kirill-konshin/followers","following_url":"https://api.github.com/users/kirill-konshin/following{/other_user}","gists_url":"https://api.github.com/users/kirill-konshin/gists{/gist_id}","starred_url":"https://api.github.com/users/kirill-konshin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kirill-konshin/subscriptions","organizations_url":"https://api.github.com/users/kirill-konshin/orgs","repos_url":"https://api.github.com/users/kirill-konshin/repos","events_url":"https://api.github.com/users/kirill-konshin/events{/privacy}","received_events_url":"https://api.github.com/users/kirill-konshin/received_events","type":"User","site_admin":false},"labels":[{"id":375500771,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20router","name":"comp: router","color":"c7def8","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-11-17T01:21:11Z","updated_at":"2017-11-20T03:11:04Z","closed_at":null,"author_association":"NONE","body":"## I'm submitting a...\r\n\r\n```\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Bug report\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request\r\n```\r\n\r\n## Minimal reproduction of the problem with instructions\r\n\r\nhttp://plnkr.co/edit/YCtSvp0dhps6fdIE5gGe\r\n\r\nMake sure that `**` route is not set (for sake of simple reproducibility), here is the snippet from `main.ts`:\r\n\r\n```js\r\n(async () => {\r\n\r\n  const platform = platformBrowserDynamic();\r\n  const appModule = await platform.bootstrapModule(AppModule);\r\n\r\n  window['kill'] = () => {\r\n    appModule.destroy();\r\n    platform.destroy();\r\n    window.location.hash = '#/xxx';\r\n  };\r\n  \r\n})();\r\n```\r\n\r\nRun in browser console (as if something external is trying to kill the Angular app):\r\n\r\n```js\r\nkill();\r\n```\r\n\r\n## Current behavior\r\n\r\n![image](https://user-images.githubusercontent.com/1530410/32924550-03c1c3ee-caf2-11e7-9007-43d043f3c4da.png)\r\n\r\n## Expected behavior\r\nWhen app is destroyed all handlers should be disconnected and destroyed as well.\r\n\r\n## Environment\r\n\r\n```\r\nAngular version: 5.0.0\r\n```"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/345580220","html_url":"https://github.com/angular/angular/issues/20491#issuecomment-345580220","issue_url":"https://api.github.com/repos/angular/angular/issues/20491","id":345580220,"user":{"login":"trotyl","id":6059170,"avatar_url":"https://avatars0.githubusercontent.com/u/6059170?v=4","gravatar_id":"","url":"https://api.github.com/users/trotyl","html_url":"https://github.com/trotyl","followers_url":"https://api.github.com/users/trotyl/followers","following_url":"https://api.github.com/users/trotyl/following{/other_user}","gists_url":"https://api.github.com/users/trotyl/gists{/gist_id}","starred_url":"https://api.github.com/users/trotyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trotyl/subscriptions","organizations_url":"https://api.github.com/users/trotyl/orgs","repos_url":"https://api.github.com/users/trotyl/repos","events_url":"https://api.github.com/users/trotyl/events{/privacy}","received_events_url":"https://api.github.com/users/trotyl/received_events","type":"User","site_admin":false},"created_at":"2017-11-20T03:11:04Z","updated_at":"2017-11-20T03:11:04Z","author_association":"CONTRIBUTOR","body":"Possibly duplicate of https://github.com/angular/angular/issues/19079?"}}
{"actor":{"display_login":"trotyl"}}