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

Method resetRootComponentType

packages/router/src/router.ts:266–271  ·  view source on GitHub ↗

@internal

(rootComponentType: Type<any>)

Source from the content-addressed store, hash-verified

264
265 /** @internal */
266 resetRootComponentType(rootComponentType: Type<any>): void {
267 // TODO: vsavkin router 4.0 should make the root component set to null
268 // this will simplify the lifecycle of the router.
269 this.routerState.root.component = rootComponentType;
270 this.navigationTransitions.rootComponentType = rootComponentType;
271 }
272
273 /**
274 * 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