diff --git a/modules/@angular/router/src/router.ts b/modules/@angular/router/src/router.ts index 560704d0bc..8a8b2954c4 100644 --- a/modules/@angular/router/src/router.ts +++ b/modules/@angular/router/src/router.ts @@ -131,7 +131,6 @@ export class Router { private locationSubscription: Subscription; private routerEvents: Subject; private navigationId: number = 0; - private config: Routes; private configLoader: RouterConfigLoader; /** @@ -148,7 +147,7 @@ export class Router { private rootComponentType: Type, private resolver: ComponentResolver, private urlSerializer: UrlSerializer, private outletMap: RouterOutletMap, private location: Location, private injector: Injector, loader: NgModuleFactoryLoader, - config: Routes) { + public config: Routes) { this.resetConfig(config); this.routerEvents = new Subject(); this.currentUrlTree = createEmptyUrlTree(); diff --git a/tools/public_api_guard/router/index.d.ts b/tools/public_api_guard/router/index.d.ts index d8dbb0480b..3fe43037a9 100644 --- a/tools/public_api_guard/router/index.d.ts +++ b/tools/public_api_guard/router/index.d.ts @@ -166,6 +166,7 @@ export interface Route { /** @stable */ export declare class Router { + config: Routes; events: Observable; /** @experimental */ navigated: boolean; routerState: RouterState;