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": "c48d365f-d740-4df1-924e-a4369d5836e4", "name": "Another name which triggers ExpressionChangedAfterItHasBeenCheckedError", "details": { "age": 81657, "country": "Austria" } }

Another name which triggers ExpressionChangedAfterItHasBeenCheckedErrorc48d365f-d740-4df1-924e-a4369d5836e4
HeroCardComponent
HeroDetailsComponent
Built with ♥ by Mokkapps | Source Code