Angular: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked
A template value changed during the same change-detection cycle in which Angular already checked it (dev-mode only error).
Expression has changed after it was checked Meaning
Usually caused by updating bound state in ngAfterViewInit/ngAfterContentInit, a child modifying parent state during rendering, or getters returning new values each time.
Common causes
- Changing bound state in ngAfterViewInit
- Child component/directive updating parent during check
- Getter/method in template returning a new value each call
- Async value resolved synchronously in a lifecycle hook
⚡ Quick fix
- Move the update to ngOnInit or make it async (setTimeout/Promise.resolve)
- Use signals/observables with async pipe
- Avoid non-deterministic getters in templates
Detailed fix by platform
TypeScript
- typescript
ngAfterViewInit() { queueMicrotask(() => this.loading = false); // next tick, not mid-check }
How to diagnose
- Binding — Previous/current values in the message
- Hook — Which lifecycle method changes it?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in Angular
- Node.js version detected. The Angular CLI requires a minimum Angular CLI: Node.js version v16.20.2 detected. The Angular CLI requires a minimum Node.js version of v18.19.1
- Could not find the builder's node package Angular CLI: Could not find the '@angular-devkit/build-angular:browser' builder's node package / Cannot find module '@angular-devkit/build-angular/package.json'
- Repository is not clean Angular CLI: Repository is not clean. Please commit or stash any changes before updating.
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 14 Oct 2026