[Angular] ExpressionChangedAfterItHasBeenCheckedError への2つの対処法AngularAngular2Angular4Angular5 ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'something: null'. Current value: 'something: something'. Componentを入れ子構造にしているとよく見るこのエラー どうも、子供のComponentから親Componentを変更しようとすると発生するようだ。 Angularでは、子供のComponentからの親の変更を基本的に禁止しているので、こういうことが出
![[Angular] ExpressionChangedAfterItHasBeenCheckedError への2つの対処法 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/37f31054083789ffd2cc7539962d79b84d8768f1/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-412672c5f0600ab9a64263b751f1bc81.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9JTVCQW5ndWxhciU1RCUyMEV4cHJlc3Npb25DaGFuZ2VkQWZ0ZXJJdEhhc0JlZW5DaGVja2VkRXJyb3IlMjAlRTMlODElQjglRTMlODElQUUyJUUzJTgxJUE0JUUzJTgxJUFFJUU1JUFGJUJFJUU1JTg3JUE2JUU2JUIzJTk1JnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmcz0wOWI4NGViZGU0ZjU5MTdkYmMwNTk2OTAzZjllMDhhYg%26mark-x%3D142%26mark-y%3D57%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9NzcwJnR4dD0lNDBzZXRlZW4mdHh0LWNvbG9yPSUyMzIxMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPTNmN2YxNzYyZmUzZDY4YjE4MGMyYzY0N2FkMDg3YTYz%26blend-x%3D142%26blend-y%3D436%26blend-mode%3Dnormal%26txt64%3DaW4g5pWZ6IKy57O744Ko44Oz44K444OL44KiIOOChOOBo-OBmeOCk-OBqOOBneOBruWRqOi-ug%26txt-width%3D770%26txt-clip%3Dend%252Cellipsis%26txt-color%3D%2523212121%26txt-font%3DHiragino%2520Sans%2520W6%26txt-size%3D36%26txt-x%3D156%26txt-y%3D536%26s%3Da1dfc019bd3c8bb6e378381e6461fcca)