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

Method resetRootComponentType

packages/router/src/router.ts:258–263  ·  view source on GitHub ↗

@internal

(rootComponentType: Type<any>)

Source from the content-addressed store, hash-verified

256
257 /** @internal */
258 resetRootComponentType(rootComponentType: Type<any>): void {
259 // TODO: vsavkin router 4.0 should make the root component set to null
260 // this will simplify the lifecycle of the router.
261 this.routerState.root.component = rootComponentType;
262 this.navigationTransitions.rootComponentType = rootComponentType;
263 }
264
265 /**
266 * Sets up the location change listener and performs the initial navigation.

Callers 2

router.spec.tsFile · 0.80
getBootstrapListenerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected