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

Function createRoot

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

Source from the content-addressed store, hash-verified

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

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…