MCPcopy
hub / github.com/angular/angular / resolve

Method resolve

packages/router/test/bootstrap.spec.ts:71–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69 @Injectable({providedIn: 'root'})
70 class TestResolver {
71 resolve() {
72 let resolve: (value: unknown) => void;
73 const res = new Promise((r) => (resolve = r));
74 setTimeout(() => resolve('test-data'), 0);
75 return res;
76 }
77 }
78
79 let navigationEndPromise: Promise<void>;

Callers

nothing calls this directly

Calls 2

setTimeoutFunction · 0.85
resolveFunction · 0.50

Tested by

no test coverage detected