MCPcopy
hub / github.com/angular/angular / createRoot

Function createRoot

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

Source from the content-addressed store, hash-verified

666}
667
668async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
669 const f = TestBed.createComponent(type);
670 await advance(f);
671 router.initialNavigation();
672 await advance(f);
673 return f;
674}

Callers 1

Calls 3

initialNavigationMethod · 0.80
advanceFunction · 0.70
createComponentMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…