Рет қаралды 24,617
Zone.js is responsible for the change detection in angular, angular has NgZone service which helps angular to automatically run the change detection when any sync or async function is executed or when there is no microTask scheduled. So for every API call or any async task, angular is running the change detection. to avoid that we have a method call runOutsideAngular which will run outside of zone.js so it will not affect the change detection, and this can increase the application performance a lot, that's the reason ngZone is used for performance optimization in angular.
Zone.js handles all async calls like setTimeout, Promise, addEventListner, and all but there are some API that zone.js doesn't handle then we can add that to the change detection by using the method run.
TrackBy: • trackBy - Efficient fo...
Change Detection: • Change Detection Strat...
Progressive Web Apps Development: bit.ly/359BXpK
Dashboard with chart.js: bit.ly/3c9Jd85
Application Development: bit.ly/398w7Gf
Upload File to server: bit.ly/3ccsjWd
Slack: bit.ly/2RXPcEK
You can support me on Patreon: / funofheuristic
Equipment used for Video:
links for India:
Microphone (AKG D5): amzn.to/3b1gi5R
Audio Interface (EVO 4): amzn.to/327tnGJ
Camera(Canon 200D): amzn.to/3ja1Pr9
Thanks for watching...