- 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.
- PHP動態網站程序設計
- Instant Node Package Manager
- 構建移動網站與APP:HTML 5移動開發入門與實戰(跨平臺移動開發叢書)
- 薛定宇教授大講堂(卷Ⅳ):MATLAB最優化計算
- Learning Network Forensics
- Python時間序列預測
- Visual C++開發入行真功夫
- ASP.NET程序開發范例寶典
- Learning Splunk Web Framework
- Python 3 Object:oriented Programming(Second Edition)
- 快樂編程:青少年思維訓練
- C Primer Plus(第6版)中文版【最新修訂版】
- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)
- Java Web開發系統項目教程
- 自學Python:編程基礎、科學計算及數據分析