getWatchers ( ). $$postDigest .
, .
, :
{isolateScope: Array[2], scope: Array[1]}
: user.username user.active:
<div><span ng-bind="user.username"></span> <a ng-if="user.active">Add</a></div>
: {{$index}}:
<li ng-repeat="user in users" id="user_a_{{$index}}">
, .
$watch?
, , - DOM, , .
$ , .
var unwatch = scope.$watch('oneTime', function (newVal, oldVal) {
unwatch();
...
});
" , ".
scope.$watch(function () { return globalVar }, function () { scope.scopeVar = ... });