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

Function createRoot

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

Source from the content-addressed store, hash-verified

407}
408
409export async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
410 const f = TestBed.createComponent<T>(type);
411 await advance(f);
412 router.initialNavigation();
413 await advance(f);
414 return f;
415}
416
417@Component({
418 selector: 'lazy',

Calls 3

initialNavigationMethod · 0.80
advanceFunction · 0.70
createComponentMethod · 0.65