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

Function createRoot

packages/router/test/directives/router_outlet.spec.ts:2409–2415  ·  view source on GitHub ↗
(router: Router, type: Type<T>)

Source from the content-addressed store, hash-verified

2407}
2408
2409async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
2410 const f = TestBed.createComponent(type);
2411 await advance(f);
2412 router.initialNavigation();
2413 await advance(f);
2414 return f;
2415}

Callers 1

Calls 3

initialNavigationMethod · 0.80
advanceFunction · 0.70
createComponentMethod · 0.65

Tested by

no test coverage detected