2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ActivatedRoute {
|
2016-08-02 18:31:56 -04:00
|
|
|
children: ActivatedRoute[];
|
2016-08-10 21:21:28 -04:00
|
|
|
component: Type<any> | string;
|
2016-06-27 17:00:07 -04:00
|
|
|
data: Observable<Data>;
|
2016-08-02 18:31:56 -04:00
|
|
|
firstChild: ActivatedRoute;
|
|
|
|
fragment: Observable<string>;
|
2016-06-23 21:19:32 -04:00
|
|
|
outlet: string;
|
|
|
|
params: Observable<Params>;
|
2016-08-02 18:31:56 -04:00
|
|
|
parent: ActivatedRoute;
|
|
|
|
pathFromRoot: ActivatedRoute[];
|
|
|
|
queryParams: Observable<Params>;
|
2016-08-07 23:34:00 -04:00
|
|
|
root: ActivatedRoute;
|
2016-07-28 20:59:05 -04:00
|
|
|
routeConfig: Route;
|
2016-06-22 17:56:10 -04:00
|
|
|
snapshot: ActivatedRouteSnapshot;
|
2016-07-25 15:15:07 -04:00
|
|
|
url: Observable<UrlSegment[]>;
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class ActivatedRouteSnapshot {
|
2016-08-02 18:31:56 -04:00
|
|
|
children: ActivatedRouteSnapshot[];
|
2016-08-10 21:21:28 -04:00
|
|
|
component: Type<any> | string;
|
2016-06-27 17:00:07 -04:00
|
|
|
data: Data;
|
2016-08-02 18:31:56 -04:00
|
|
|
firstChild: ActivatedRouteSnapshot;
|
|
|
|
fragment: string;
|
2016-06-23 21:19:32 -04:00
|
|
|
outlet: string;
|
|
|
|
params: Params;
|
2016-08-02 18:31:56 -04:00
|
|
|
parent: ActivatedRouteSnapshot;
|
|
|
|
pathFromRoot: ActivatedRouteSnapshot[];
|
|
|
|
queryParams: Params;
|
2016-08-07 23:34:00 -04:00
|
|
|
root: ActivatedRouteSnapshot;
|
2016-07-28 20:59:05 -04:00
|
|
|
routeConfig: Route;
|
2016-07-25 15:15:07 -04:00
|
|
|
url: UrlSegment[];
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface CanActivate {
|
2016-07-13 21:12:59 -04:00
|
|
|
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @stable */
|
|
|
|
export interface CanActivateChild {
|
|
|
|
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface CanDeactivate<T> {
|
2016-12-27 17:08:06 -05:00
|
|
|
canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-07-26 17:39:02 -04:00
|
|
|
/** @stable */
|
|
|
|
export interface CanLoad {
|
|
|
|
canLoad(route: Route): Observable<boolean> | Promise<boolean> | boolean;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-27 17:00:07 -04:00
|
|
|
export declare type Data = {
|
|
|
|
[name: string]: any;
|
|
|
|
};
|
|
|
|
|
2016-08-17 18:35:30 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class DefaultUrlSerializer implements UrlSerializer {
|
|
|
|
parse(url: string): UrlTree;
|
|
|
|
serialize(tree: UrlTree): string;
|
|
|
|
}
|
|
|
|
|
2016-11-30 02:21:41 -05:00
|
|
|
/** @experimental */
|
|
|
|
export declare type DetachedRouteHandle = {};
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-08-05 11:24:40 -04:00
|
|
|
export declare type Event = NavigationStart | NavigationEnd | NavigationCancel | NavigationError | RoutesRecognized;
|
2016-06-22 17:56:10 -04:00
|
|
|
|
2016-08-16 16:40:28 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface ExtraOptions {
|
|
|
|
enableTracing?: boolean;
|
2016-08-25 10:56:30 -04:00
|
|
|
errorHandler?: ErrorHandler;
|
2016-08-25 11:48:31 -04:00
|
|
|
initialNavigation?: boolean;
|
2016-09-16 20:31:24 -04:00
|
|
|
preloadingStrategy?: any;
|
2016-07-27 12:54:19 -04:00
|
|
|
useHash?: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-08-17 18:35:30 -04:00
|
|
|
/** @stable */
|
2016-08-16 00:11:09 -04:00
|
|
|
export declare type LoadChildren = string | LoadChildrenCallback;
|
|
|
|
|
2016-08-17 18:35:30 -04:00
|
|
|
/** @stable */
|
2016-08-16 00:11:09 -04:00
|
|
|
export declare type LoadChildrenCallback = () => Type<any> | Promise<Type<any>> | Observable<Type<any>>;
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NavigationCancel {
|
|
|
|
id: number;
|
2016-08-24 13:20:44 -04:00
|
|
|
reason: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
url: string;
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
reason: string);
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NavigationEnd {
|
|
|
|
id: number;
|
|
|
|
url: string;
|
|
|
|
urlAfterRedirects: string;
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
urlAfterRedirects: string);
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NavigationError {
|
2016-06-23 21:19:32 -04:00
|
|
|
error: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
id: number;
|
|
|
|
url: string;
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
error: any);
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-08-30 18:57:24 -04:00
|
|
|
/** @stable */
|
2016-07-18 19:42:33 -04:00
|
|
|
export interface NavigationExtras {
|
|
|
|
fragment?: string;
|
2016-07-20 20:51:21 -04:00
|
|
|
preserveFragment?: boolean;
|
|
|
|
preserveQueryParams?: boolean;
|
2016-07-18 19:42:33 -04:00
|
|
|
queryParams?: Params;
|
|
|
|
relativeTo?: ActivatedRoute;
|
2016-08-12 17:30:51 -04:00
|
|
|
replaceUrl?: boolean;
|
2016-08-04 14:46:09 -04:00
|
|
|
skipLocationChange?: boolean;
|
2016-07-18 19:42:33 -04:00
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NavigationStart {
|
|
|
|
id: number;
|
|
|
|
url: string;
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
|
|
|
id: number,
|
|
|
|
url: string);
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-09-16 20:31:24 -04:00
|
|
|
/** @experimental */
|
|
|
|
export declare class NoPreloading implements PreloadingStrategy {
|
|
|
|
preload(route: Route, fn: () => Observable<any>): Observable<any>;
|
|
|
|
}
|
|
|
|
|
2016-08-17 18:35:30 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare type Params = {
|
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
|
2016-09-16 20:31:24 -04:00
|
|
|
/** @experimental */
|
|
|
|
export declare class PreloadAllModules implements PreloadingStrategy {
|
|
|
|
preload(route: Route, fn: () => Observable<any>): Observable<any>;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @experimental */
|
|
|
|
export declare abstract class PreloadingStrategy {
|
|
|
|
abstract preload(route: Route, fn: () => Observable<any>): Observable<any>;
|
|
|
|
}
|
|
|
|
|
2016-08-17 18:35:30 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const PRIMARY_OUTLET: string;
|
|
|
|
|
2016-08-16 16:40:28 -04:00
|
|
|
/** @stable */
|
2016-07-06 19:19:52 -04:00
|
|
|
export declare function provideRoutes(routes: Routes): any;
|
2016-07-06 14:02:52 -04:00
|
|
|
|
2016-08-17 18:35:30 -04:00
|
|
|
/** @stable */
|
2016-06-27 17:00:07 -04:00
|
|
|
export interface Resolve<T> {
|
2016-12-08 14:24:38 -05:00
|
|
|
resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<T> | Promise<T> | T;
|
2016-06-27 17:00:07 -04:00
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-27 17:00:07 -04:00
|
|
|
export declare type ResolveData = {
|
|
|
|
[name: string]: any;
|
|
|
|
};
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export interface Route {
|
2016-07-28 17:36:05 -04:00
|
|
|
canActivate?: any[];
|
|
|
|
canActivateChild?: any[];
|
|
|
|
canDeactivate?: any[];
|
|
|
|
canLoad?: any[];
|
2016-12-06 13:41:01 -05:00
|
|
|
children?: Routes;
|
2016-08-16 16:40:28 -04:00
|
|
|
component?: Type<any>;
|
2016-07-28 17:36:05 -04:00
|
|
|
data?: Data;
|
2016-08-16 00:11:09 -04:00
|
|
|
loadChildren?: LoadChildren;
|
2016-11-09 18:25:47 -05:00
|
|
|
matcher?: UrlMatcher;
|
2016-07-28 17:36:05 -04:00
|
|
|
outlet?: string;
|
2016-06-23 21:19:32 -04:00
|
|
|
path?: string;
|
2016-07-28 17:36:05 -04:00
|
|
|
pathMatch?: string;
|
|
|
|
redirectTo?: string;
|
|
|
|
resolve?: ResolveData;
|
|
|
|
}
|
2016-06-22 17:56:10 -04:00
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class Router {
|
2016-08-11 00:41:44 -04:00
|
|
|
config: Routes;
|
2016-08-25 10:56:30 -04:00
|
|
|
errorHandler: ErrorHandler;
|
2016-06-23 21:19:32 -04:00
|
|
|
events: Observable<Event>;
|
2016-09-12 13:02:48 -04:00
|
|
|
navigated: boolean;
|
2016-11-30 02:21:41 -05:00
|
|
|
routeReuseStrategy: RouteReuseStrategy;
|
2016-06-22 17:56:10 -04:00
|
|
|
routerState: RouterState;
|
|
|
|
url: string;
|
2016-10-20 13:44:44 -04:00
|
|
|
urlHandlingStrategy: UrlHandlingStrategy;
|
2016-08-16 16:40:28 -04:00
|
|
|
constructor(rootComponentType: Type<any>, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Routes);
|
2016-07-20 20:51:21 -04:00
|
|
|
createUrlTree(commands: any[], {relativeTo, queryParams, fragment, preserveQueryParams, preserveFragment}?: NavigationExtras): UrlTree;
|
2016-07-14 20:29:01 -04:00
|
|
|
dispose(): void;
|
|
|
|
initialNavigation(): void;
|
2016-07-28 20:59:05 -04:00
|
|
|
isActive(url: string | UrlTree, exact: boolean): boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
|
2016-08-04 14:46:09 -04:00
|
|
|
navigateByUrl(url: string | UrlTree, extras?: NavigationExtras): Promise<boolean>;
|
2016-08-02 10:54:14 -04:00
|
|
|
ngOnDestroy(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
parseUrl(url: string): UrlTree;
|
2016-07-06 19:19:52 -04:00
|
|
|
resetConfig(config: Routes): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
serializeUrl(url: UrlTree): string;
|
2016-08-25 11:48:31 -04:00
|
|
|
setUpLocationChangeListener(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-11-09 16:33:33 -05:00
|
|
|
/** @stable */
|
|
|
|
export declare const ROUTER_CONFIGURATION: OpaqueToken;
|
|
|
|
|
|
|
|
/** @experimental */
|
|
|
|
export declare const ROUTER_INITIALIZER: OpaqueToken;
|
|
|
|
|
2016-11-30 02:21:41 -05:00
|
|
|
/** @experimental */
|
|
|
|
export declare abstract class RouteReuseStrategy {
|
|
|
|
abstract retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle;
|
|
|
|
abstract shouldAttach(route: ActivatedRouteSnapshot): boolean;
|
|
|
|
abstract shouldDetach(route: ActivatedRouteSnapshot): boolean;
|
|
|
|
abstract shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
|
|
|
|
abstract store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle): void;
|
|
|
|
}
|
|
|
|
|
2016-06-29 18:11:36 -04:00
|
|
|
/** @stable */
|
|
|
|
export declare class RouterLink {
|
|
|
|
fragment: string;
|
2016-07-20 20:51:21 -04:00
|
|
|
preserveFragment: boolean;
|
|
|
|
preserveQueryParams: boolean;
|
2016-06-29 18:11:36 -04:00
|
|
|
queryParams: {
|
|
|
|
[k: string]: any;
|
|
|
|
};
|
2016-11-14 21:30:13 -05:00
|
|
|
replaceUrl: boolean;
|
2016-06-29 18:11:36 -04:00
|
|
|
routerLink: any[] | string;
|
2016-11-14 21:30:13 -05:00
|
|
|
skipLocationChange: boolean;
|
2016-06-29 18:11:36 -04:00
|
|
|
urlTree: UrlTree;
|
2016-12-09 18:38:50 -05:00
|
|
|
constructor(router: Router, route: ActivatedRoute, tabIndex: string, renderer: Renderer, el: ElementRef);
|
2016-11-02 14:30:00 -04:00
|
|
|
onClick(): boolean;
|
2016-06-29 18:11:36 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/** @stable */
|
|
|
|
export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
|
2016-10-25 15:51:24 -04:00
|
|
|
isActive: boolean;
|
2016-06-30 17:47:55 -04:00
|
|
|
links: QueryList<RouterLink>;
|
|
|
|
linksWithHrefs: QueryList<RouterLinkWithHref>;
|
2016-06-29 18:11:36 -04:00
|
|
|
routerLinkActive: string[] | string;
|
2016-08-15 03:39:59 -04:00
|
|
|
routerLinkActiveOptions: {
|
|
|
|
exact: boolean;
|
|
|
|
};
|
2016-06-30 17:47:55 -04:00
|
|
|
constructor(router: Router, element: ElementRef, renderer: Renderer);
|
2016-06-29 18:11:36 -04:00
|
|
|
ngAfterContentInit(): void;
|
|
|
|
ngOnChanges(changes: {}): any;
|
|
|
|
ngOnDestroy(): any;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @stable */
|
2016-06-30 21:24:43 -04:00
|
|
|
export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
|
2016-06-29 18:11:36 -04:00
|
|
|
fragment: string;
|
|
|
|
href: string;
|
2016-07-20 20:51:21 -04:00
|
|
|
preserveFragment: boolean;
|
|
|
|
preserveQueryParams: boolean;
|
2016-06-29 18:11:36 -04:00
|
|
|
queryParams: {
|
|
|
|
[k: string]: any;
|
|
|
|
};
|
2016-11-14 21:30:13 -05:00
|
|
|
replaceUrl: boolean;
|
2016-06-29 18:11:36 -04:00
|
|
|
routerLink: any[] | string;
|
2016-11-14 21:30:13 -05:00
|
|
|
skipLocationChange: boolean;
|
2016-06-29 18:11:36 -04:00
|
|
|
target: string;
|
|
|
|
urlTree: UrlTree;
|
2016-07-27 12:54:19 -04:00
|
|
|
constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy);
|
2016-06-29 18:11:36 -04:00
|
|
|
ngOnChanges(changes: {}): any;
|
2016-06-30 21:24:43 -04:00
|
|
|
ngOnDestroy(): any;
|
2016-06-29 18:11:36 -04:00
|
|
|
onClick(button: number, ctrlKey: boolean, metaKey: boolean): boolean;
|
|
|
|
}
|
|
|
|
|
2016-08-17 18:35:30 -04:00
|
|
|
/** @stable */
|
2016-07-07 17:13:32 -04:00
|
|
|
export declare class RouterModule {
|
2016-08-23 14:57:58 -04:00
|
|
|
constructor(guard: any);
|
2016-07-27 12:54:19 -04:00
|
|
|
static forChild(routes: Routes): ModuleWithProviders;
|
|
|
|
static forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders;
|
2016-07-18 06:50:31 -04:00
|
|
|
}
|
|
|
|
|
2016-06-29 18:11:36 -04:00
|
|
|
/** @stable */
|
2016-08-01 19:56:38 -04:00
|
|
|
export declare class RouterOutlet implements OnDestroy {
|
2016-07-08 17:47:19 -04:00
|
|
|
activateEvents: EventEmitter<any>;
|
2016-06-29 18:11:36 -04:00
|
|
|
activatedRoute: ActivatedRoute;
|
|
|
|
component: Object;
|
2016-07-08 17:47:19 -04:00
|
|
|
deactivateEvents: EventEmitter<any>;
|
2016-06-29 18:11:36 -04:00
|
|
|
isActivated: boolean;
|
2016-11-11 20:12:00 -05:00
|
|
|
locationFactoryResolver: ComponentFactoryResolver;
|
|
|
|
locationInjector: Injector;
|
2016-06-29 18:11:36 -04:00
|
|
|
outletMap: RouterOutletMap;
|
2016-07-06 14:02:52 -04:00
|
|
|
constructor(parentOutletMap: RouterOutletMap, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string);
|
2016-11-11 20:12:00 -05:00
|
|
|
activate(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver, injector: Injector, providers: ResolvedReflectiveProvider[], outletMap: RouterOutletMap): void;
|
2016-11-30 02:21:41 -05:00
|
|
|
attach(ref: ComponentRef<any>, activatedRoute: ActivatedRoute): void;
|
2016-06-29 18:11:36 -04:00
|
|
|
deactivate(): void;
|
2016-11-30 02:21:41 -05:00
|
|
|
detach(): ComponentRef<any>;
|
2016-08-01 19:56:38 -04:00
|
|
|
ngOnDestroy(): void;
|
2016-06-29 18:11:36 -04:00
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class RouterOutletMap {
|
|
|
|
registerOutlet(name: string, outlet: RouterOutlet): void;
|
2016-08-01 19:56:38 -04:00
|
|
|
removeOutlet(name: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-11-09 16:33:33 -05:00
|
|
|
/** @stable */
|
|
|
|
export declare class RouterPreloader {
|
|
|
|
constructor(router: Router, moduleLoader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, preloadingStrategy: PreloadingStrategy);
|
|
|
|
ngOnDestroy(): void;
|
|
|
|
preload(): Observable<any>;
|
|
|
|
setUpPreloading(): void;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class RouterState extends Tree<ActivatedRoute> {
|
|
|
|
snapshot: RouterStateSnapshot;
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
|
2016-06-23 21:19:32 -04:00
|
|
|
url: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-07-06 19:19:52 -04:00
|
|
|
/** @stable */
|
|
|
|
export declare type Routes = Route[];
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class RoutesRecognized {
|
|
|
|
id: number;
|
2016-06-23 21:19:32 -04:00
|
|
|
state: RouterStateSnapshot;
|
2016-06-22 17:56:10 -04:00
|
|
|
url: string;
|
|
|
|
urlAfterRedirects: string;
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
urlAfterRedirects: string,
|
|
|
|
state: RouterStateSnapshot);
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-10-20 13:44:44 -04:00
|
|
|
/** @experimental */
|
|
|
|
export declare abstract class UrlHandlingStrategy {
|
|
|
|
abstract extract(url: UrlTree): UrlTree;
|
|
|
|
abstract merge(newUrlPart: UrlTree, rawUrl: UrlTree): UrlTree;
|
|
|
|
abstract shouldProcessUrl(url: UrlTree): boolean;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-07-25 15:15:07 -04:00
|
|
|
export declare class UrlSegment {
|
2016-06-22 17:56:10 -04:00
|
|
|
parameters: {
|
2016-12-09 13:44:46 -05:00
|
|
|
[name: string]: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
path: string;
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
|
|
|
path: string,
|
|
|
|
parameters: {
|
2016-12-09 13:44:46 -05:00
|
|
|
[name: string]: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
});
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-10-20 13:44:44 -04:00
|
|
|
/** @stable */
|
|
|
|
export declare class UrlSegmentGroup {
|
|
|
|
children: {
|
|
|
|
[key: string]: UrlSegmentGroup;
|
|
|
|
};
|
|
|
|
numberOfChildren: number;
|
|
|
|
parent: UrlSegmentGroup;
|
|
|
|
segments: UrlSegment[];
|
|
|
|
constructor(
|
|
|
|
segments: UrlSegment[],
|
|
|
|
children: {
|
|
|
|
[key: string]: UrlSegmentGroup;
|
|
|
|
});
|
|
|
|
hasChildren(): boolean;
|
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2016-08-17 18:35:30 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class UrlSerializer {
|
|
|
|
abstract parse(url: string): UrlTree;
|
|
|
|
abstract serialize(tree: UrlTree): string;
|
|
|
|
}
|
|
|
|
|
2016-06-28 17:49:29 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class UrlTree {
|
2016-06-23 21:19:32 -04:00
|
|
|
fragment: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
queryParams: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
2016-07-25 15:15:07 -04:00
|
|
|
root: UrlSegmentGroup;
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
2016-11-30 16:52:08 -05:00
|
|
|
|
|
|
|
/** @stable */
|
|
|
|
export declare const VERSION: Version;
|