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

Method resolve

packages/router/test/regression_integration.spec.ts:324–329  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

322 @Injectable()
323 class DelayedResolve {
324 resolve() {
325 return of('').pipe(
326 switchMap((v) => new Promise((r) => setTimeout(r, 10)).then(() => v)),
327 mapTo(true),
328 );
329 }
330 }
331 @Component({
332 template: `<router-outlet></router-outlet>`,

Callers

nothing calls this directly

Calls 2

setTimeoutFunction · 0.85
thenMethod · 0.65

Tested by

no test coverage detected