fix(router): canLoad should cancel a navigation instead of failing it (#11001)
This commit is contained in:
3
tools/public_api_guard/router/index.d.ts
vendored
3
tools/public_api_guard/router/index.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user