feat(router): make router.config public

This commit is contained in:
vsavkin 2016-08-10 21:41:44 -07:00 committed by Vikram Subramanian
parent 7cd4741fcb
commit 947f9c3f56
2 changed files with 2 additions and 2 deletions

View File

@ -131,7 +131,6 @@ export class Router {
private locationSubscription: Subscription;
private routerEvents: Subject<Event>;
private navigationId: number = 0;
private config: Routes;
private configLoader: RouterConfigLoader;
/**
@ -148,7 +147,7 @@ export class Router {
private rootComponentType: Type<any>, 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<Event>();
this.currentUrlTree = createEmptyUrlTree();

View File

@ -166,6 +166,7 @@ export interface Route {
/** @stable */
export declare class Router {
config: Routes;
events: Observable<Event>;
/** @experimental */ navigated: boolean;
routerState: RouterState;