How does data binding work in the AngularJS
framework?
I haven\'t found technical details on their site. It\'s more or less clear how it works when data
This is my basic understanding. It may well be wrong!
$watch
method.$apply
method.$apply
the $digest
method is invoked which goes
through each of the watches and checks to see if they changed since
last time the $digest
ran.In normal development, data-binding syntax in the HTML tells the AngularJS compiler to create the watches for you and controller methods are run inside $apply
already. So to the application developer it is all transparent.