additional files
This commit is contained in:
@@ -0,0 +1 @@
|
||||
- [Angular Zoneless Fix](angular-zoneless-fix.md) — Added zone.js to fix async HTTP change detection
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
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]]
|
||||
Reference in New Issue
Block a user