MCPcopy
hub / github.com/angular/angular / runWatchers

Method runWatchers

packages/common/upgrade/test/upgrade.spec.ts:46–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44 private watchers: any[] = [];
45 private events: {[k: string]: any[]} = {};
46 runWatchers() {
47 this.watchers.forEach((fn) => fn());
48 }
49
50 $watch(fn: any) {
51 this.watchers.push(fn);

Callers 1

upgrade.spec.tsFile · 0.80

Calls 2

fnFunction · 0.50
forEachMethod · 0.45

Tested by

no test coverage detected