简体   繁体   English

Angular2应用程序开发

[英]Angular2 application development

As i am developing an angular2 application in which am using a service to call a server. 当我在开发angular2应用程序时,正在使用服务来调用服务器。 At Each time while hitting the server, zone.js which present in node modules also hits the server. 在每次访问服务器时,节点模块中存在的zone.js也会访问服务器。 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的主要目的是什么?命中服务器的原因是什么?如何处理它?

zone.js is to do with the Angular's internal change detection mechanism (new in angular 2). zone.js与Angular的内部change detection mechanism (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 要了解更多信息,请访问: https : //blog.thoughtram.io/angular/2016/02/01/zones-in-angular-2.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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