feat(router): add support for custom error handlers

This commit is contained in:
vsavkin
2016-08-25 07:56:30 -07:00
committed by Victor Berchet
parent 93f323cfa2
commit 2fc5c57b31
4 changed files with 53 additions and 2 deletions

View File

@ -72,6 +72,7 @@ export declare type Event = NavigationStart | NavigationEnd | NavigationCancel |
/** @stable */
export interface ExtraOptions {
enableTracing?: boolean;
errorHandler?: ErrorHandler;
useHash?: boolean;
}
@ -168,6 +169,7 @@ export interface Route {
/** @stable */
export declare class Router {
config: Routes;
errorHandler: ErrorHandler;
events: Observable<Event>;
/** @experimental */ navigated: boolean;
routerState: RouterState;