MCPcopy
hub / github.com/angular/angular / $on

Method $on

packages/common/upgrade/test/upgrade.spec.ts:68–71  ·  view source on GitHub ↗
(evt: string, fn: any)

Source from the content-addressed store, hash-verified

66 }
67
68 $on(evt: string, fn: any) {
69 this.events[evt] ||= [];
70 this.events[evt].push(fn);
71 }
72
73 $evalAsync(fn: any) {
74 fn();

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected