Files
Angular-Cn/modules/@angular/router/src/interfaces.ts
T

10 lines
343 B
TypeScript
Raw Normal View History

2016-05-02 17:11:21 +00:00
import {RouteSegment, Tree, RouteTree} from './segments';
2015-07-07 15:44:29 -07:00
export interface OnActivate {
2016-05-02 17:11:21 +00:00
routerOnActivate(curr: RouteSegment, prev?: RouteSegment, currTree?: RouteTree,
prevTree?: RouteTree): void;
2015-07-07 15:44:29 -07:00
}
export interface CanDeactivate {
2016-05-02 17:11:21 +00:00
routerCanDeactivate(currTree?: RouteTree, futureTree?: RouteTree): Promise<boolean>;
}