feat(router): make router.config public
This commit is contained in:
parent
7cd4741fcb
commit
947f9c3f56
|
@ -131,7 +131,6 @@ export class Router {
|
||||||
private locationSubscription: Subscription;
|
private locationSubscription: Subscription;
|
||||||
private routerEvents: Subject<Event>;
|
private routerEvents: Subject<Event>;
|
||||||
private navigationId: number = 0;
|
private navigationId: number = 0;
|
||||||
private config: Routes;
|
|
||||||
private configLoader: RouterConfigLoader;
|
private configLoader: RouterConfigLoader;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -148,7 +147,7 @@ export class Router {
|
||||||
private rootComponentType: Type<any>, private resolver: ComponentResolver,
|
private rootComponentType: Type<any>, private resolver: ComponentResolver,
|
||||||
private urlSerializer: UrlSerializer, private outletMap: RouterOutletMap,
|
private urlSerializer: UrlSerializer, private outletMap: RouterOutletMap,
|
||||||
private location: Location, private injector: Injector, loader: NgModuleFactoryLoader,
|
private location: Location, private injector: Injector, loader: NgModuleFactoryLoader,
|
||||||
config: Routes) {
|
public config: Routes) {
|
||||||
this.resetConfig(config);
|
this.resetConfig(config);
|
||||||
this.routerEvents = new Subject<Event>();
|
this.routerEvents = new Subject<Event>();
|
||||||
this.currentUrlTree = createEmptyUrlTree();
|
this.currentUrlTree = createEmptyUrlTree();
|
||||||
|
|
|
@ -166,6 +166,7 @@ export interface Route {
|
||||||
|
|
||||||
/** @stable */
|
/** @stable */
|
||||||
export declare class Router {
|
export declare class Router {
|
||||||
|
config: Routes;
|
||||||
events: Observable<Event>;
|
events: Observable<Event>;
|
||||||
/** @experimental */ navigated: boolean;
|
/** @experimental */ navigated: boolean;
|
||||||
routerState: RouterState;
|
routerState: RouterState;
|
||||||
|
|
Loading…
Reference in New Issue