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

Function createRoot

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

Source from the content-addressed store, hash-verified

619}
620
621function createRoot<T>(router: Router, type: Type<T>): ComponentFixture<T> {
622 const f = TestBed.createComponent(type);
623 advance(f);
624 router.initialNavigation();
625 advance(f);
626 return f;
627}

Callers 1

Calls 3

initialNavigationMethod · 0.80
advanceFunction · 0.70
createComponentMethod · 0.65

Tested by

no test coverage detected