MCPcopy
hub / github.com/angular/angular / logOnError

Function logOnError

packages/core/test/zone/ng_zone_spec.ts:36–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34const resolvedPromise = Promise.resolve(null);
35
36function logOnError() {
37 _zone.onError.subscribe({
38 next: (error: any) => {
39 // Error handler should run outside of the Angular zone.
40 NgZone.assertNotInAngularZone();
41 _errors.push(error);
42 _traces.push(error.stack);
43 },
44 });
45}
46
47function logOnUnstable() {
48 _zone.onUnstable.subscribe({next: _log.fn('onUnstable')});

Callers 1

ng_zone_spec.tsFile · 0.85

Calls 3

subscribeMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…