docs(angular): add zone pollution content (#6903)

pull/6937/head
J. Degand 3 months ago committed by GitHub
parent 33ef642dd8
commit d73145661a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 11
      src/data/roadmaps/angular/content/zone-pollution@pRSR5PEbkJXAJ1LPyK-EE.md

@ -1 +1,10 @@
# Zone Pollution # Zone Pollution
`Zone.js` is a signaling mechanism that Angular uses to detect when an application state might have changed. In some cases, scheduled tasks or microtasks don’t make any changes in the data model, which makes running change detection unnecessary. Common examples are `requestAnimationFrame`, `setTimeout` and `setInterval`. You can identify change detection with Angular DevTools, and you can run code outside the Angular zone to avoid unnecessary change detection calls.
Visit the following resources to learn more:
- [@official@Angular Official Docs - Zone Pollution](https://angular.dev/best-practices/zone-pollution)
- [@official@Angular Official Docs - DevTools](https://angular.dev/tools/devtools)
- [@video@NgZone in Angular - Improve Performance by Running Code Outside Angular](https://www.youtube.com/watch?v=7duYY9IFIuw)
- [@video@4 Runtime Performance Optimizations](https://www.youtube.com/watch?v=f8sA-i6gkGQ)
Loading…
Cancel
Save