MCPcopy Create free account
hub / github.com/angular/angular / resolve

Method resolve

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

setTimeoutFunction · 0.85
withResolversMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected