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

Function createRoot

packages/router/test/integration/integration_helpers.ts:417–423  ·  view source on GitHub ↗
(router: Router, type: Type<T>)

Source from the content-addressed store, hash-verified

415}
416
417export async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
418 const f = TestBed.createComponent<T>(type);
419 await advance(f);
420 router.initialNavigation();
421 await advance(f);
422 return f;
423}
424
425@Component({
426 selector: 'lazy',

Calls 3

initialNavigationMethod · 0.80
advanceFunction · 0.70
createComponentMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…