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

Method resolve

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

Source from the content-addressed store, hash-verified

68 @Injectable({providedIn: 'root'})
69 class TestResolver {
70 resolve() {
71 const {promise, resolve} = Promise.withResolvers();
72 setTimeout(() => resolve('test-data'), 0);
73 return promise;
74 }
75 }
76
77 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