When will AngularJS trigger dirty-checks? -


i've read q/a databinding , $apply -> $digest in angularjs : how data binding work in angularjs?

while understand principle , consequences, i'm still unsure when angulajs going call $digest dirty-checks. (and so, when should consider $watcher)

every example found using 'ng-click', 'ng-show', or 'ng-class'. i'm pretty sure triggered change on variables of scope ({{mydata}}), , many others directives (all of them maybe ?).

i understand in cases $digest called.

can give me generic rule knwo when called, or exhaustive list of actions trigger dirty-check ?

have @ this:

angularjs docs, @ "integration browser event loop" section.

basically way works angularjs binds event handlers element interacts angular (any element has directive attached it) , every time event fires, $apply called internally calls $digest trigger reevaluation of $watches check values changed, etc...


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -