MCPcopy Index your code
hub / github.com/angular/angular / createRoot

Function createRoot

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

Source from the content-addressed store, hash-verified

521}
522
523async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
524 const f = TestBed.createComponent(type);
525 router.initialNavigation();
526 await nextNavigation();
527 return f;
528}
529
530@Component({
531 selector: 'simple-cmp',

Callers 1

createNavigationHistoryFunction · 0.70

Calls 3

nextNavigationFunction · 0.85
initialNavigationMethod · 0.80
createComponentMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…