简体   繁体   中英

Angular2 application development

As i am developing an angular2 application in which am using a service to call a server. At Each time while hitting the server, zone.js which present in node modules also hits the server. what is the main purpose of zone.js and what is the reason for hitting the server and how it can be handled?

zone.js is to do with the Angular's internal change detection mechanism (new in angular 2). It is required. You can safely ignore it.

To know more about it go to : https://blog.thoughtram.io/angular/2016/02/01/zones-in-angular-2.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM