- Switching to Angular(Third Edition)
- Minko Gechev
- 129字
- 2021-07-02 15:23:34
In zone.js
This is exactly the case in Angular. This functionality is implemented with zones using zone.js.
At ng-conf, in 2014, Brian Ford gave a talk about zones. Brian presented zones as meta-monkey patching of browser APIs. The zone.js is a library developed by the Angular team, which implements zones in JavaScript. They represent an execution context, which allows us to intercept asynchronous browser calls. Basically, using zones, we are able to invoke a piece of logic just after the given XMLHttpRequest object completes or when we receive a new WebSocket event. Angular took advantage of zone.js by intercepting asynchronous browser events and invoking the digest loop just at the right time. This totally eliminates the need for explicit calls of the digest loop by the developer using Angular.
- C++程序設(shè)計教程
- ExtGWT Rich Internet Application Cookbook
- CMDB分步構(gòu)建指南
- Learning Selenium Testing Tools with Python
- Learning C++ Functional Programming
- HTML5 移動Web開發(fā)從入門到精通(微課精編版)
- Xcode 7 Essentials(Second Edition)
- Bootstrap Essentials
- MATLAB 2020從入門到精通
- HTML5 APP開發(fā)從入門到精通(微課精編版)
- Android驅(qū)動開發(fā)權(quán)威指南
- Visual Basic 6.0程序設(shè)計實驗教程
- Android Game Programming by Example
- Visual C#(學(xué)習(xí)筆記)
- R語言數(shù)據(jù)分析從入門到實戰(zhàn)