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

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.

主站蜘蛛池模板: 江山市| 大冶市| 温州市| 临泉县| 台州市| 博湖县| 宁海县| 科技| 鹤壁市| 永年县| 叙永县| 区。| 栾川县| 青铜峡市| 南宁市| 延庆县| 新野县| 鄯善县| 利津县| 福泉市| 靖西县| 固阳县| 建瓯市| 武山县| 大悟县| 永仁县| 马边| 城市| 唐山市| 平顶山市| 垦利县| 杨浦区| 芜湖县| 北宁市| 西青区| 荔浦县| 开江县| 凯里市| 湄潭县| 宁化县| 景谷|