Question: Explain the role of ngZone in Angular.Answer: NgZone is a service in Angular that helps to execute code outside Angular's zone. It is particularly useful for optimizing performance and dealing with third-party libraries that are not aware of Angular's change detection.Example:
|
Is it helpful?
Yes
No
Most helpful rated by users: