mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
cleanup(router): fix a typo
This commit is contained in:
parent
8407cfeac7
commit
1f6ade894e
1 changed files with 2 additions and 2 deletions
|
|
@ -33,9 +33,9 @@ export class Router {
|
|||
/**
|
||||
* @internal
|
||||
*/
|
||||
constructor(private roorComponentType:Type, private resolver: ComponentResolver, private urlSerializer: UrlSerializer, private outletMap: RouterOutletMap, private location: Location) {
|
||||
constructor(private rootComponentType:Type, private resolver: ComponentResolver, private urlSerializer: UrlSerializer, private outletMap: RouterOutletMap, private location: Location) {
|
||||
this.currentUrlTree = createEmptyUrlTree();
|
||||
this.currentRouterState = createEmptyState(roorComponentType);
|
||||
this.currentRouterState = createEmptyState(rootComponentType);
|
||||
this.setUpLocationChangeListener();
|
||||
this.navigateByUrl(this.location.path());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue