{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/10175","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/10175/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/10175/comments","events_url":"https://api.github.com/repos/angular/angular/issues/10175/events","html_url":"https://github.com/angular/angular/issues/10175","id":166480838,"number":10175,"title":"Why ngAfterViewChecked is called even ChangeDetectorRef.detach() is fired?","user":{"login":"orange4glace","id":17820596,"avatar_url":"https://avatars.githubusercontent.com/u/17820596?v=3","gravatar_id":"","url":"https://api.github.com/users/orange4glace","html_url":"https://github.com/orange4glace","followers_url":"https://api.github.com/users/orange4glace/followers","following_url":"https://api.github.com/users/orange4glace/following{/other_user}","gists_url":"https://api.github.com/users/orange4glace/gists{/gist_id}","starred_url":"https://api.github.com/users/orange4glace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orange4glace/subscriptions","organizations_url":"https://api.github.com/users/orange4glace/orgs","repos_url":"https://api.github.com/users/orange4glace/repos","events_url":"https://api.github.com/users/orange4glace/events{/privacy}","received_events_url":"https://api.github.com/users/orange4glace/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-20T02:28:29Z","updated_at":"2016-07-20T05:53:36Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ x ] bug report\r\n[ ] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nwhen ref.detach() is called, until then view is not being updated.\r\nthen, in common sense, view is never changing so ngAfterViewChecked also should not be called.\r\nbut simply, when setInterval or setTimeout is called, ngAfterViewChecked is also fired.\r\n\r\n**Expected/desired behavior**\r\nngAfterViewChecked should be stop being fired after ref.detach() is called.\r\n\r\n\r\n**Reproduction of the problem**\r\nhttps://plnkr.co/edit/2vBfx0DkFoRljRU07JiN?p=preview\r\n\r\n\r\n\r\n**What is the expected behavior?**\r\nngAfterViewChecked should be stop being fired after ref.detach() is called.\r\n\r\n\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nAmCharts uses very short interval to check user interaction or something.\r\nWhen I insert this to component, since it calls setInterval every single tick, ngAfterViewChanged is also called every single tick although there's no changes to apply.\r\n\r\n\r\n**Please tell us about your environment:**\r\nWindows 10, Chrome 51.0.2704.103 m\r\n\r\n* **Angular version:** 2.0.0-rc.4\r\n \r\n* **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] \r\nWindows 10, Chrome 51.0.2704.103 m\r\n \r\n* **Language:** [all | TypeScript X.X | ES6/7 | ES5 | Dart] \r\nTypescript 1.8.10\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/233844549","html_url":"https://github.com/angular/angular/issues/10175#issuecomment-233844549","issue_url":"https://api.github.com/repos/angular/angular/issues/10175","id":233844549,"user":{"login":"laco0416","id":1529180,"avatar_url":"https://avatars.githubusercontent.com/u/1529180?v=3","gravatar_id":"","url":"https://api.github.com/users/laco0416","html_url":"https://github.com/laco0416","followers_url":"https://api.github.com/users/laco0416/followers","following_url":"https://api.github.com/users/laco0416/following{/other_user}","gists_url":"https://api.github.com/users/laco0416/gists{/gist_id}","starred_url":"https://api.github.com/users/laco0416/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laco0416/subscriptions","organizations_url":"https://api.github.com/users/laco0416/orgs","repos_url":"https://api.github.com/users/laco0416/repos","events_url":"https://api.github.com/users/laco0416/events{/privacy}","received_events_url":"https://api.github.com/users/laco0416/received_events","type":"User","site_admin":false},"created_at":"2016-07-20T05:53:36Z","updated_at":"2016-07-20T05:53:36Z","body":"> Angular version: 2.0.0-rc.4\r\n\r\nyour plunker repro seems using `2.0.0-beta.9`, too old.\r\nPlease try it with the latest version."}}
{"actor":{"display_login":"laco0416"}}