feat(router): add router preloader to optimistically preload routes
This commit is contained in:
@ -317,6 +317,15 @@ export class Router {
|
||||
this.currentRouterState = createEmptyState(this.currentUrlTree, this.rootComponentType);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* TODO: this should be removed once the constructor of the router made internal
|
||||
*/
|
||||
resetRootComponentType(rootComponentType: Type<any>): void {
|
||||
this.rootComponentType = rootComponentType;
|
||||
this.currentRouterState = createEmptyState(this.currentUrlTree, this.rootComponentType);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets up the location change listener and performs the initial navigation.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user