0
$ scopeオブジェクトがウォッチャーとリスナー関数の両方の引数として提供される理由はあまり明確ではありません。 私はそれが$ダイジェスト内ウォッチャー配列を反復作品だ、トンhis bit of code on GitHubが見つかりました:舞台裏
this.$$watchers.forEach(function(watcher) {
var newValue = watcher.watchFn(self);
var oldValue = watcher.last;
if (watcher.deep && newValue === oldValue) {
deppCompare(newValue, oldValue);
} else {
if (newValue !== oldValue) dirty = true;
}
watcher.listenerFn(newValue, oldValue, self);
watcher.last = newValue;
});