fix(router): canLoad should cancel a navigation instead of failing it (#11001)

This commit is contained in:
Victor Savkin
2016-08-24 10:20:44 -07:00
committed by Kara
parent 7dfcaac730
commit f1ce7607a6
5 changed files with 31 additions and 11 deletions

View File

@ -84,8 +84,9 @@ export declare type LoadChildrenCallback = () => Type<any> | Promise<Type<any>>
/** @stable */
export declare class NavigationCancel {
id: number;
reason: string;
url: string;
constructor(id: number, url: string);
constructor(id: number, url: string, reason: string);
toString(): string;
}