AngularJS如何知道变量何时更改? AngularJS脏检查如何工作? [英] How does AngularJS know when variables change? How does AngularJS dirty checking work?
本文介绍了AngularJS如何知道变量何时更改? AngularJS脏检查如何工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在阅读一些文章,以进一步了解AngularJS的工作原理.
I was reading some article to understand a little bit more how AngularJS works.
我不理解的术语之一是Dirty Checking
.
One of the terms that I didn't understand is Dirty Checking
.
到底是什么?看起来像观察者模式,但显然更好.
What is it exactly? It seems like the Observer pattern but apparently it's better.
您能帮我理解吗?
对于想了解更多有关此内容的人来说,观看此视频也很有用来自NgEurope几年前的 swiip .
EDIT : it can be also useful for people who wants to learn more about that to watch this video from swiip at NgEurope some years ago.
推荐答案
查看全文