ng-docs.github.io
ng-docs.github.io copied to clipboard
数据绑定原理
请问angular 2+的数据绑定原理是什么呢?
参考这篇:https://indepth.dev/the-mechanics-of-property-bindings-update-in-angular/ 大体上来说,通过变更检测来收集哪些被绑定到模板中的数据变化了,并且用新的值更新这些模板。当然,内部细节很多。