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

Function createRoot

packages/router/test/regression_integration.spec.ts:568–574  ·  view source on GitHub ↗
(router: Router, type: Type<T>)

Source from the content-addressed store, hash-verified

566}
567
568function createRoot<T>(router: Router, type: Type<T>): ComponentFixture<T> {
569 const f = TestBed.createComponent(type);
570 advance(f);
571 router.initialNavigation();
572 advance(f);
573 return f;
574}

Callers 1

Calls 3

initialNavigationMethod · 0.80
advanceFunction · 0.70
createComponentMethod · 0.65

Tested by

no test coverage detected