官术网_书友最值得收藏!

Simplified data flow

The cross-watcher dependencies may create a tangled data flow in our application, which is hard to follow. This may lead to unpredictable behavior and bugs, which are hard to find. Although Angular kept the dirty checking as a way to achieve change detection, the framework enforced unidirectional data flow. This happened by disallowing dependencies between the different watchers, which allows the digest loop to be run only once. This strategy increases the performance of our applications dramatically and reduces the complexity of the data flow. Angular also made improvements to memory efficiency and the performance of the digest loop. Further details on Angular's change detection and the different strategies used for its implementation can be found in Chapter 5, Getting Started with Angular Components and Directives.

主站蜘蛛池模板: 汪清县| 固安县| 嘉鱼县| 青州市| 怀化市| 武胜县| 垣曲县| 读书| 宝应县| 格尔木市| 崇左市| 台州市| 安西县| 石泉县| 衡阳市| 从化市| 民丰县| 博兴县| 卓尼县| 西乌| 运城市| 勃利县| 麻阳| 全州县| 介休市| 原阳县| 于都县| 调兵山市| 苍溪县| 浠水县| 太原市| 顺昌县| 会理县| 宿松县| 台东市| 台南市| 白山市| 元谋县| 孝感市| 四川省| 万盛区|