- 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.
- Flask Web全棧開發實戰
- JavaScript前端開發模塊化教程
- 高手是如何做產品設計的(全2冊)
- Deploying Node.js
- Intel Galileo Essentials
- Django開發從入門到實踐
- Magento 2 Theme Design(Second Edition)
- 深入淺出Spring Boot 2.x
- JavaScript Unlocked
- Java Web應用開發技術與案例教程(第2版)
- Mastering KnockoutJS
- Windows Phone 7.5:Building Location-aware Applications
- Learning Node.js for .NET Developers
- 貫通Tomcat開發
- Arduino電子設計實戰指南:零基礎篇