2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-05-26 19:51:44 -04:00
|
|
|
/**
|
|
|
|
* Name of the primary outlet.
|
|
|
|
* @type {string}
|
2016-06-27 15:27:23 -04:00
|
|
|
*
|
2016-08-17 18:35:30 -04:00
|
|
|
* @stable
|
2016-05-26 19:51:44 -04:00
|
|
|
*/
|
2016-07-22 16:25:48 -04:00
|
|
|
export const PRIMARY_OUTLET = 'primary';
|
2016-05-26 19:51:44 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* A collection of parameters.
|
2016-06-27 15:27:23 -04:00
|
|
|
*
|
2016-08-17 18:35:30 -04:00
|
|
|
* @stable
|
2016-05-26 19:51:44 -04:00
|
|
|
*/
|
2016-06-08 14:13:41 -04:00
|
|
|
export type Params = {
|
2016-06-14 19:29:37 -04:00
|
|
|
[key: string]: any
|
2016-06-08 14:13:41 -04:00
|
|
|
};
|
2016-08-24 13:20:44 -04:00
|
|
|
|
|
|
|
export class NavigationCancelingError extends Error {
|
|
|
|
public stack: any;
|
|
|
|
constructor(public message: string) {
|
|
|
|
super(message);
|
|
|
|
this.stack = (<any>new Error(message)).stack;
|
|
|
|
}
|
|
|
|
toString(): string { return this.message; }
|
|
|
|
}
|