Angular 8 Interview Questions and Answers
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:
|
Save For Revision
Bookmark this item, mark it difficult, or place it in a revision set.
Log in to save bookmarks, difficult questions, and revision sets.
Is it helpful? Yes No
Most helpful rated by users: