docs(angular): add zone pollution content (#6903)
parent
33ef642dd8
commit
d73145661a
1 changed files with 10 additions and 1 deletions
@ -1 +1,10 @@ |
||||
# 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…
Reference in new issue