Skip to main content

Posts

Showing posts with the label outside zone run angular2

What are Zones? What is Change Detection? What is NgZone run outside ?

What are Zones?  What is NgZone in Angular 2? Angular 2 runs inside of its own special zone called NgZone and this special zone extends the basic functionality of a zone to facilitate change detection. It is Running inside a zone allows to detect when asynchronous tasks. If you change or update your internal application code or view and it is detecting the applications changes with help of NgZone. Stayed Informed -  69 Best Angular 2 Interview Questions and Answers Application state change by following things as, 1.      Events – Looks like as click, change, input, submit, etc. 2.      XMLHttpRequests – It’s occurs when we fetch data from a remote service. 3.      Timers – when you use timer methods such as setTimeout (), setInterval (), etc. What is Change Detection? Angular 2 runs inside of its own special zone called NgZone and this special zone extends the basic functionality o...