2016-06-23 16:47:54 +00: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 23:51:44 +00:00
|
|
|
/**
|
|
|
|
|
* Name of the primary outlet.
|
|
|
|
|
* @type {string}
|
2016-06-27 19:27:23 +00:00
|
|
|
*
|
2016-08-17 22:35:30 +00:00
|
|
|
* @stable
|
2016-05-26 23:51:44 +00:00
|
|
|
*/
|
2016-07-22 20:25:48 +00:00
|
|
|
export const PRIMARY_OUTLET = 'primary';
|
2016-05-26 23:51:44 +00:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* A collection of parameters.
|
2016-06-27 19:27:23 +00:00
|
|
|
*
|
2016-08-17 22:35:30 +00:00
|
|
|
* @stable
|
2016-05-26 23:51:44 +00:00
|
|
|
*/
|
2016-06-08 18:13:41 +00:00
|
|
|
export type Params = {
|
2016-06-14 23:29:37 +00:00
|
|
|
[key: string]: any
|
2016-06-08 18:13:41 +00:00
|
|
|
};
|
2016-08-24 17:20:44 +00: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; }
|
2016-08-25 07:50:16 +00:00
|
|
|
}
|