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

Function createRoot

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

Source from the content-addressed store, hash-verified

859}
860
861async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
862 const f = TestBed.createComponent(type);
863 await advance(f);
864 router.initialNavigation();
865 await advance(f);
866 return f;
867}

Callers 1

Calls 3

initialNavigationMethod · 0.80
advanceFunction · 0.70
createComponentMethod · 0.65

Tested by

no test coverage detected