Angular的Zone-Evergreen在SAP Spartacus中的应用
zone-evergreen.js
觸發(fā)產(chǎn)品數(shù)據(jù)的加載:
url:https://spartacus-dev0.eastus.cloudapp.azure.com:9002/occ/v2/electronics-spa/products/300938?fields=code,name,summary,price(formattedValue),images(DEFAULT,galleryIndex)&lang=zh&curr=USD
Zone是一個(gè)執(zhí)行上下文,能夠在多個(gè)異步任務(wù)之間持久化??梢詫⑵漕惐瘸蔀镴avaScript VM設(shè)計(jì)的thread-local storage.
A Zone is an execution context that persists across async tasks. You can think of it as thread-local storage for JavaScript VMs.
So, without zones, we don’t get any change detection, so we don’t get any of the nice UI updates that we’d expect!
沒有zone-evergreen就沒有change detection.
更多Jerry的原創(chuàng)文章,盡在:“汪子熙”:
總結(jié)
以上是生活随笔為你收集整理的Angular的Zone-Evergreen在SAP Spartacus中的应用的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: zone-evergreen.js里的s
- 下一篇: CF手游怎么获得孙尚香 孙尚香获取途径详