Files
2026-06-19 17:37:19 +00:00

13 lines
583 B
Markdown

---
name: angular-zoneless-fix
description: Fixed Angular 21 zoneless default causing async HTTP callbacks to not trigger change detection
metadata:
type: project
---
Angular 21 defaults to zoneless execution. The project was missing zone.js entirely, so HTTP responses arrived but change detection never ran — components stayed stuck on loading states.
**Fix:** Added `import 'zone.js'` to [src/main.ts](src/main.ts) and installed zone.js as a dependency. This is the simpler fix over configuring provideZoneChangeDetection() manually.
Related: [[auto-seed-admin-bootstrap]]