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

Function createRoot

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

Source from the content-addressed store, hash-verified

570}
571
572async function createRoot<T>(router: Router, type: Type<T>): Promise<ComponentFixture<T>> {
573 const f = TestBed.createComponent(type);
574 router.initialNavigation();
575 await nextNavigation();
576 return f;
577}
578
579@Component({
580 template: `simple`,

Calls 3

nextNavigationFunction · 0.85
initialNavigationMethod · 0.80
createComponentMethod · 0.65

Tested by

no test coverage detected