{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/10762","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/10762/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/10762/comments","events_url":"https://api.github.com/repos/angular/angular/issues/10762/events","html_url":"https://github.com/angular/angular/issues/10762","id":170968728,"number":10762,"title":"Nested Dynamic Components Break With ComponentFactoryResolver","user":{"login":"rbj325","id":1242849,"avatar_url":"https://avatars.githubusercontent.com/u/1242849?v=3","gravatar_id":"","url":"https://api.github.com/users/rbj325","html_url":"https://github.com/rbj325","followers_url":"https://api.github.com/users/rbj325/followers","following_url":"https://api.github.com/users/rbj325/following{/other_user}","gists_url":"https://api.github.com/users/rbj325/gists{/gist_id}","starred_url":"https://api.github.com/users/rbj325/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbj325/subscriptions","organizations_url":"https://api.github.com/users/rbj325/orgs","repos_url":"https://api.github.com/users/rbj325/repos","events_url":"https://api.github.com/users/rbj325/events{/privacy}","received_events_url":"https://api.github.com/users/rbj325/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-08-12T22:10:41Z","updated_at":"2016-08-19T13:58:23Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ x ] bug report => search github for a similar issue or PR before submitting\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 trying to render nested dynamic components via the ComponentFactoryResolver I receive an exception/error message:\r\n\r\nbrowser_adapter.js:84Error: Expression has changed after it was checked. Previous value: 'CD_INIT_VALUE'. Current value: 'null'. It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?\r\n\r\n\r\n**Expected/desired behavior**\r\n\r\nIt should render the nested dynamic controls.  This had worked until the introduction of the ComponentFactoryResolver.  See:  https://plnkr.co/edit/JRyqou9yC6LvSRrCR3eA?p=preview\r\n\r\n**Reproduction of the problem**\r\n\r\nHere is the plunkr recreating the issue:  http://plnkr.co/edit/NzT4a7GEAB7k4yqeZrs0?p=preview\r\n\r\n**What is the expected behavior?**\r\n\r\nI should be able to render a control via ComponentFactoryResolver which in turn also renders multiple controls via ComponentFactoryResolver.\r\n\r\nIn my use case, I am rendering a form wizard made up of several dynamic components.  In one of those dynamic components I am pulling fields defined in the database to render a set of user controlled fields.\r\n\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\n\r\nIt used to work.\r\n\r\n\r\n**Please tell us about your environment:**\r\n\r\n* **Angular version:** 2.0.0-rc.5\r\n \r\n* **Browser:** [all ] \r\n \r\n* **Language:** [all ] \r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/241025609","html_url":"https://github.com/angular/angular/issues/10762#issuecomment-241025609","issue_url":"https://api.github.com/repos/angular/angular/issues/10762","id":241025609,"user":{"login":"rbj325","id":1242849,"avatar_url":"https://avatars.githubusercontent.com/u/1242849?v=3","gravatar_id":"","url":"https://api.github.com/users/rbj325","html_url":"https://github.com/rbj325","followers_url":"https://api.github.com/users/rbj325/followers","following_url":"https://api.github.com/users/rbj325/following{/other_user}","gists_url":"https://api.github.com/users/rbj325/gists{/gist_id}","starred_url":"https://api.github.com/users/rbj325/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbj325/subscriptions","organizations_url":"https://api.github.com/users/rbj325/orgs","repos_url":"https://api.github.com/users/rbj325/repos","events_url":"https://api.github.com/users/rbj325/events{/privacy}","received_events_url":"https://api.github.com/users/rbj325/received_events","type":"User","site_admin":false},"created_at":"2016-08-19T13:58:23Z","updated_at":"2016-08-19T13:58:23Z","body":"@gluix Awesome, I think that's the only life cycle hook I didn't try."}}
{"actor":{"display_login":"rbj325"}}