Change Detection DemosGitHub

ExpressionChangedAfterItHasBeenCheckedError Demo

  • Name is changed in ngAfterViewInit, open browser console to see the error
  • View generation process (which ngAfterViewInit is a part of) is itself further modifying the data that we are trying to display in the first place

{ "id": "a7ea2a5e-950f-4383-aa1b-e0c5bb78e314", "name": "Another name which triggers ExpressionChangedAfterItHasBeenCheckedError", "details": { "age": 77111, "country": "Ethiopia" } }

Another name which triggers ExpressionChangedAfterItHasBeenCheckedErrora7ea2a5e-950f-4383-aa1b-e0c5bb78e314
HeroCardComponent
HeroDetailsComponent
Built with ♥ by Mokkapps | Source Code