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