2021-06-28 13:54:20 -04:00
|
|
|
## API Report File for "@angular/router"
|
|
|
|
|
|
|
|
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
|
|
|
|
|
|
```ts
|
|
|
|
|
|
|
|
import { AfterContentInit } from '@angular/core';
|
|
|
|
import { ChangeDetectorRef } from '@angular/core';
|
|
|
|
import { Compiler } from '@angular/core';
|
|
|
|
import { ComponentFactoryResolver } from '@angular/core';
|
|
|
|
import { ComponentRef } from '@angular/core';
|
|
|
|
import { ElementRef } from '@angular/core';
|
|
|
|
import { EventEmitter } from '@angular/core';
|
|
|
|
import { InjectionToken } from '@angular/core';
|
|
|
|
import { Injector } from '@angular/core';
|
2021-07-01 11:41:29 -04:00
|
|
|
import { Location as Location_2 } from '@angular/common';
|
2021-06-28 13:54:20 -04:00
|
|
|
import { LocationStrategy } from '@angular/common';
|
|
|
|
import { ModuleWithProviders } from '@angular/core';
|
|
|
|
import { NgModuleFactory } from '@angular/core';
|
|
|
|
import { NgModuleFactoryLoader } from '@angular/core';
|
|
|
|
import { Observable } from 'rxjs';
|
|
|
|
import { OnChanges } from '@angular/core';
|
|
|
|
import { OnDestroy } from '@angular/core';
|
|
|
|
import { OnInit } from '@angular/core';
|
|
|
|
import { QueryList } from '@angular/core';
|
|
|
|
import { Renderer2 } from '@angular/core';
|
|
|
|
import { SimpleChanges } from '@angular/core';
|
|
|
|
import { Type } from '@angular/core';
|
|
|
|
import { Version } from '@angular/core';
|
|
|
|
import { ViewContainerRef } from '@angular/core';
|
|
|
|
|
|
|
|
// @public
|
|
|
|
export class ActivatedRoute {
|
2019-11-09 13:36:22 -05:00
|
|
|
get children(): ActivatedRoute[];
|
2017-04-17 14:13:13 -04:00
|
|
|
component: Type<any> | string | null;
|
2016-06-27 17:00:07 -04:00
|
|
|
data: Observable<Data>;
|
2019-11-09 13:36:22 -05:00
|
|
|
get firstChild(): ActivatedRoute | null;
|
2020-05-28 13:18:00 -04:00
|
|
|
fragment: Observable<string | null>;
|
2016-06-23 21:19:32 -04:00
|
|
|
outlet: string;
|
2019-11-09 13:36:22 -05:00
|
|
|
get paramMap(): Observable<ParamMap>;
|
2016-06-23 21:19:32 -04:00
|
|
|
params: Observable<Params>;
|
2019-11-09 13:36:22 -05:00
|
|
|
get parent(): ActivatedRoute | null;
|
|
|
|
get pathFromRoot(): ActivatedRoute[];
|
|
|
|
get queryParamMap(): Observable<ParamMap>;
|
2016-08-02 18:31:56 -04:00
|
|
|
queryParams: Observable<Params>;
|
2019-11-09 13:36:22 -05:00
|
|
|
get root(): ActivatedRoute;
|
|
|
|
get routeConfig(): Route | null;
|
2016-06-22 17:56:10 -04:00
|
|
|
snapshot: ActivatedRouteSnapshot;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
url: Observable<UrlSegment[]>;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class ActivatedRouteSnapshot {
|
2019-11-09 13:36:22 -05:00
|
|
|
get children(): ActivatedRouteSnapshot[];
|
2017-04-17 14:13:13 -04:00
|
|
|
component: Type<any> | string | null;
|
2016-06-27 17:00:07 -04:00
|
|
|
data: Data;
|
2019-11-09 13:36:22 -05:00
|
|
|
get firstChild(): ActivatedRouteSnapshot | null;
|
2020-05-28 13:18:00 -04:00
|
|
|
fragment: string | null;
|
2016-06-23 21:19:32 -04:00
|
|
|
outlet: string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2019-11-09 13:36:22 -05:00
|
|
|
get paramMap(): ParamMap;
|
2016-06-23 21:19:32 -04:00
|
|
|
params: Params;
|
2019-11-09 13:36:22 -05:00
|
|
|
get parent(): ActivatedRouteSnapshot | null;
|
|
|
|
get pathFromRoot(): ActivatedRouteSnapshot[];
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2019-11-09 13:36:22 -05:00
|
|
|
get queryParamMap(): ParamMap;
|
2016-08-02 18:31:56 -04:00
|
|
|
queryParams: Params;
|
2019-11-09 13:36:22 -05:00
|
|
|
get root(): ActivatedRouteSnapshot;
|
2017-04-17 14:13:13 -04:00
|
|
|
readonly routeConfig: Route | null;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
url: UrlSegment[];
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class ActivationEnd {
|
2017-09-06 14:00:32 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
snapshot: ActivatedRouteSnapshot);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
snapshot: ActivatedRouteSnapshot;
|
|
|
|
// (undocumented)
|
2017-09-06 14:00:32 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class ActivationStart {
|
2017-09-06 14:00:32 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
snapshot: ActivatedRouteSnapshot);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
snapshot: ActivatedRouteSnapshot;
|
|
|
|
// (undocumented)
|
2017-09-06 14:00:32 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export abstract class BaseRouteReuseStrategy implements RouteReuseStrategy {
|
2019-07-15 17:00:01 -04:00
|
|
|
retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null;
|
|
|
|
shouldAttach(route: ActivatedRouteSnapshot): boolean;
|
|
|
|
shouldDetach(route: ActivatedRouteSnapshot): boolean;
|
|
|
|
shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
|
|
|
|
store(route: ActivatedRouteSnapshot, detachedTree: DetachedRouteHandle): void;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface CanActivate {
|
|
|
|
// (undocumented)
|
2018-10-03 18:35:13 -04:00
|
|
|
canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
2016-07-13 21:12:59 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface CanActivateChild {
|
|
|
|
// (undocumented)
|
2018-10-03 18:35:13 -04:00
|
|
|
canActivateChild(childRoute: ActivatedRouteSnapshot, state: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface CanDeactivate<T> {
|
|
|
|
// (undocumented)
|
2018-10-03 18:35:13 -04:00
|
|
|
canDeactivate(component: T, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState?: RouterStateSnapshot): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface CanLoad {
|
|
|
|
// (undocumented)
|
2020-04-13 13:50:44 -04:00
|
|
|
canLoad(route: Route, segments: UrlSegment[]): Observable<boolean | UrlTree> | Promise<boolean | UrlTree> | boolean | UrlTree;
|
2016-07-26 17:39:02 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class ChildActivationEnd {
|
2017-09-05 14:54:33 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
snapshot: ActivatedRouteSnapshot);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
snapshot: ActivatedRouteSnapshot;
|
|
|
|
// (undocumented)
|
2017-07-25 14:13:15 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class ChildActivationStart {
|
2017-09-05 14:54:33 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
snapshot: ActivatedRouteSnapshot);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
snapshot: ActivatedRouteSnapshot;
|
|
|
|
// (undocumented)
|
2017-07-25 14:13:15 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class ChildrenOutletContexts {
|
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
getContext(childName: string): OutletContext | null;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
getOrCreateContext(childName: string): OutletContext;
|
2021-02-12 12:45:12 -05:00
|
|
|
onChildOutletCreated(childName: string, outlet: RouterOutletContract): void;
|
2017-05-17 20:47:34 -04:00
|
|
|
onChildOutletDestroyed(childName: string): void;
|
|
|
|
onOutletDeactivated(): Map<string, OutletContext>;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
onOutletReAttached(contexts: Map<string, OutletContext>): void;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export function convertToParamMap(params: Params): ParamMap;
|
2017-03-20 12:19:25 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type Data = {
|
2016-06-27 17:00:07 -04:00
|
|
|
[name: string]: any;
|
|
|
|
};
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class DefaultUrlSerializer implements UrlSerializer {
|
2016-06-22 17:56:10 -04:00
|
|
|
parse(url: string): UrlTree;
|
|
|
|
serialize(tree: UrlTree): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public @deprecated
|
|
|
|
export type DeprecatedLoadChildren = string;
|
feat(router): deprecate loadChildren:string (#30073)
The proposed ES dynamic import() is now supported by the Angular CLI and the
larger toolchain. This renders the `loadChildren: string` API largely
redundant, as import() is far more natural, is less error-prone, and is
standards compliant. This commit deprecates the `string` form of
`loadChildren` in favor of dynamic import().
DEPRECATION:
When defining lazy-loaded route, Angular previously offered two options for
configuring the module to be loaded, both via the `loadChildren` parameter
of the route. Most Angular developers are familiar withthe `string` form of
this API. For example, the following route definition configures Angular to
load a `LazyModule` NgModule from `lazy-route/lazy.module.ts`:
```
[{
path: 'lazy',
loadChildren: 'lazy-route/lazy.module#LazyModule',
}]
```
This "magic string" configuration was previously necessary as there was
no dynamic module loading standard on the web. This has changed with the
pending standardization of dynamic `import()` expressions, which are now
supported in the Angular CLI and in web tooling in general. `import()`
offers a more natural and robust solution to dynamic module loading. The
above example can be rewritten to use dynamic `import()`:
```
[{
path: 'lazy',
loadChildren: () => import('./lazy-route/lazy.module').then(mod => mod.LazyModule),
}]
```
This form of lazy loading offers significant advantages in terms of:
* type checking via TypeScript
* simplicity of generated code
* future potential to run natively in supporting browsers
(see: [caniuse: dynamic import()](https://caniuse.com/#feat=es6-module-dynamic-import))
As a result, Angular is deprecating the `loadChildren: string` syntax in
favor of ES dynamic `import()`. An automatic migration will run during
`ng upgrade` to convert your existing Angular code to the new syntax.
PR Close #30073
2019-04-23 17:30:09 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type DetachedRouteHandle = {};
|
2016-11-30 02:21:41 -05:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
2021-07-01 11:41:29 -04:00
|
|
|
type Event_2 = RouterEvent | RouteConfigLoadStart | RouteConfigLoadEnd | ChildActivationStart | ChildActivationEnd | ActivationStart | ActivationEnd | Scroll;
|
|
|
|
|
|
|
|
export { Event_2 as Event }
|
2016-06-22 17:56:10 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface ExtraOptions {
|
2018-05-17 07:33:50 -04:00
|
|
|
anchorScrolling?: 'disabled' | 'enabled';
|
2016-06-22 17:56:10 -04:00
|
|
|
enableTracing?: boolean;
|
2016-08-25 10:56:30 -04:00
|
|
|
errorHandler?: ErrorHandler;
|
2017-03-07 17:27:20 -05:00
|
|
|
initialNavigation?: InitialNavigation;
|
2018-04-10 06:01:07 -04:00
|
|
|
malformedUriErrorHandler?: (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree;
|
2017-10-19 18:32:50 -04:00
|
|
|
onSameUrlNavigation?: 'reload' | 'ignore';
|
2017-11-28 19:57:10 -05:00
|
|
|
paramsInheritanceStrategy?: 'emptyOnly' | 'always';
|
2016-09-16 20:31:24 -04:00
|
|
|
preloadingStrategy?: any;
|
2018-02-23 04:24:51 -05:00
|
|
|
relativeLinkResolution?: 'legacy' | 'corrected';
|
2018-05-17 07:33:50 -04:00
|
|
|
scrollOffset?: [number, number] | (() => [number, number]);
|
|
|
|
scrollPositionRestoration?: 'disabled' | 'enabled' | 'top';
|
2018-07-10 12:44:15 -04:00
|
|
|
urlUpdateStrategy?: 'deferred' | 'eager';
|
2016-07-27 12:54:19 -04:00
|
|
|
useHash?: boolean;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class GuardsCheckEnd extends RouterEvent {
|
2017-07-01 13:30:17 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
urlAfterRedirects: string,
|
|
|
|
state: RouterStateSnapshot,
|
|
|
|
shouldActivate: boolean);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
shouldActivate: boolean;
|
|
|
|
// (undocumented)
|
|
|
|
state: RouterStateSnapshot;
|
|
|
|
// (undocumented)
|
2017-07-01 13:30:17 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
urlAfterRedirects: string;
|
2017-07-01 13:30:17 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class GuardsCheckStart extends RouterEvent {
|
2017-07-01 13:30:17 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
urlAfterRedirects: string,
|
|
|
|
state: RouterStateSnapshot);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
state: RouterStateSnapshot;
|
|
|
|
// (undocumented)
|
2017-07-01 13:30:17 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
urlAfterRedirects: string;
|
2017-07-01 13:30:17 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type InitialNavigation = 'disabled' | 'enabled' | 'enabledBlocking' | 'enabledNonBlocking';
|
2019-09-16 18:14:04 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface IsActiveMatchOptions {
|
2020-12-29 17:41:42 -05:00
|
|
|
fragment: 'exact' | 'ignored';
|
|
|
|
matrixParams: 'exact' | 'subset' | 'ignored';
|
|
|
|
paths: 'exact' | 'subset';
|
|
|
|
queryParams: 'exact' | 'subset' | 'ignored';
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type LoadChildren = LoadChildrenCallback | DeprecatedLoadChildren;
|
2016-08-16 00:11:09 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type LoadChildrenCallback = () => Type<any> | NgModuleFactory<any> | Observable<Type<any>> | Promise<NgModuleFactory<any> | Type<any> | any>;
|
2016-08-16 00:11:09 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface Navigation {
|
2018-11-29 13:07:24 -05:00
|
|
|
extractedUrl: UrlTree;
|
|
|
|
extras: NavigationExtras;
|
2021-05-24 13:39:22 -04:00
|
|
|
finalUrl?: UrlTree;
|
|
|
|
id: number;
|
|
|
|
initialUrl: string | UrlTree;
|
2018-11-29 13:07:24 -05:00
|
|
|
previousNavigation: Navigation | null;
|
2021-05-24 13:39:22 -04:00
|
|
|
trigger: 'imperative' | 'popstate' | 'hashchange';
|
|
|
|
}
|
2018-11-29 13:07:24 -05:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface NavigationBehaviorOptions {
|
2020-07-24 16:39:56 -04:00
|
|
|
replaceUrl?: boolean;
|
|
|
|
skipLocationChange?: boolean;
|
|
|
|
state?: {
|
|
|
|
[k: string]: any;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class NavigationCancel extends RouterEvent {
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
reason: string);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
reason: string;
|
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class NavigationEnd extends RouterEvent {
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
urlAfterRedirects: string);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
urlAfterRedirects: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class NavigationError extends RouterEvent {
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
error: any);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
error: any;
|
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface NavigationExtras extends UrlCreationOptions, NavigationBehaviorOptions {
|
2016-07-18 19:42:33 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class NavigationStart extends RouterEvent {
|
2018-01-24 12:19:59 -05:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
navigationTrigger?: 'imperative' | 'popstate' | 'hashchange',
|
|
|
|
restoredState?: {
|
2018-11-29 13:07:24 -05:00
|
|
|
[k: string]: any;
|
2018-01-24 12:19:59 -05:00
|
|
|
navigationId: number;
|
|
|
|
} | null);
|
2021-06-28 13:54:20 -04:00
|
|
|
navigationTrigger?: 'imperative' | 'popstate' | 'hashchange';
|
|
|
|
restoredState?: {
|
|
|
|
[k: string]: any;
|
|
|
|
navigationId: number;
|
|
|
|
} | null;
|
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class NoPreloading implements PreloadingStrategy {
|
|
|
|
// (undocumented)
|
2016-09-16 20:31:24 -04:00
|
|
|
preload(route: Route, fn: () => Observable<any>): Observable<any>;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class OutletContext {
|
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
attachRef: ComponentRef<any> | null;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
children: ChildrenOutletContexts;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2021-02-12 12:45:12 -05:00
|
|
|
outlet: RouterOutletContract | null;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
resolver: ComponentFactoryResolver | null;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
route: ActivatedRoute | null;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface ParamMap {
|
2017-03-17 13:09:42 -04:00
|
|
|
get(name: string): string | null;
|
|
|
|
getAll(name: string): string[];
|
|
|
|
has(name: string): boolean;
|
2021-06-28 13:54:20 -04:00
|
|
|
readonly keys: string[];
|
2017-03-17 13:09:42 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type Params = {
|
2016-06-22 17:56:10 -04:00
|
|
|
[key: string]: any;
|
|
|
|
};
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class PreloadAllModules implements PreloadingStrategy {
|
|
|
|
// (undocumented)
|
2016-09-16 20:31:24 -04:00
|
|
|
preload(route: Route, fn: () => Observable<any>): Observable<any>;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export abstract class PreloadingStrategy {
|
|
|
|
// (undocumented)
|
2016-09-16 20:31:24 -04:00
|
|
|
abstract preload(route: Route, fn: () => Observable<any>): Observable<any>;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export const PRIMARY_OUTLET = "primary";
|
2016-06-22 17:56:10 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export function provideRoutes(routes: Routes): any;
|
2016-07-06 14:02:52 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type QueryParamsHandling = 'merge' | 'preserve' | '';
|
2019-07-03 19:15:15 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface Resolve<T> {
|
|
|
|
// (undocumented)
|
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
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type ResolveData = {
|
2016-06-27 17:00:07 -04:00
|
|
|
[name: string]: any;
|
|
|
|
};
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class ResolveEnd extends RouterEvent {
|
2017-07-01 13:30:17 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
urlAfterRedirects: string,
|
|
|
|
state: RouterStateSnapshot);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
state: RouterStateSnapshot;
|
|
|
|
// (undocumented)
|
2017-07-01 13:30:17 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
urlAfterRedirects: string;
|
2017-07-01 13:30:17 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class ResolveStart extends RouterEvent {
|
2017-07-01 13:30:17 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
urlAfterRedirects: string,
|
|
|
|
state: RouterStateSnapshot);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
state: RouterStateSnapshot;
|
|
|
|
// (undocumented)
|
2017-07-01 13:30:17 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
urlAfterRedirects: string;
|
2017-07-01 13:30:17 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
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;
|
2017-02-24 01:12:30 -05:00
|
|
|
runGuardsAndResolvers?: RunGuardsAndResolvers;
|
2016-07-28 17:36:05 -04:00
|
|
|
}
|
2016-06-22 17:56:10 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouteConfigLoadEnd {
|
2017-09-05 14:54:33 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
route: Route);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
route: Route;
|
|
|
|
// (undocumented)
|
2017-02-01 16:13:57 -05:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouteConfigLoadStart {
|
2017-07-25 14:13:15 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
route: Route);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
route: Route;
|
|
|
|
// (undocumented)
|
2017-09-05 14:54:33 -04:00
|
|
|
toString(): string;
|
2017-07-25 14:13:15 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class Router {
|
2021-07-01 11:41:29 -04:00
|
|
|
constructor(rootComponentType: Type<any> | null, urlSerializer: UrlSerializer, rootContexts: ChildrenOutletContexts, location: Location_2, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Routes);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
config: Routes;
|
2020-10-20 15:35:36 -04:00
|
|
|
createUrlTree(commands: any[], navigationExtras?: UrlCreationOptions): UrlTree;
|
2016-07-14 20:29:01 -04:00
|
|
|
dispose(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
errorHandler: ErrorHandler;
|
2021-07-01 11:41:29 -04:00
|
|
|
readonly events: Observable<Event_2>;
|
2018-11-29 13:07:24 -05:00
|
|
|
getCurrentNavigation(): Navigation | null;
|
2016-07-14 20:29:01 -04:00
|
|
|
initialNavigation(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
// @deprecated
|
|
|
|
isActive(url: string | UrlTree, exact: boolean): boolean;
|
2020-12-29 17:41:42 -05:00
|
|
|
isActive(url: string | UrlTree, matchOptions: IsActiveMatchOptions): boolean;
|
2021-06-28 13:54:20 -04:00
|
|
|
malformedUriErrorHandler: (error: URIError, urlSerializer: UrlSerializer, url: string) => UrlTree;
|
2016-06-22 17:56:10 -04:00
|
|
|
navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
|
2020-07-24 16:39:56 -04:00
|
|
|
navigateByUrl(url: string | UrlTree, extras?: NavigationBehaviorOptions): Promise<boolean>;
|
2021-06-28 13:54:20 -04:00
|
|
|
navigated: boolean;
|
|
|
|
// (undocumented)
|
2016-08-02 10:54:14 -04:00
|
|
|
ngOnDestroy(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
onSameUrlNavigation: 'reload' | 'ignore';
|
|
|
|
paramsInheritanceStrategy: 'emptyOnly' | 'always';
|
2016-06-22 17:56:10 -04:00
|
|
|
parseUrl(url: string): UrlTree;
|
2021-06-28 13:54:20 -04:00
|
|
|
relativeLinkResolution: 'legacy' | 'corrected';
|
2016-07-06 19:19:52 -04:00
|
|
|
resetConfig(config: Routes): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
routeReuseStrategy: RouteReuseStrategy;
|
|
|
|
readonly routerState: RouterState;
|
2016-06-23 21:19:32 -04:00
|
|
|
serializeUrl(url: UrlTree): string;
|
2016-08-25 11:48:31 -04:00
|
|
|
setUpLocationChangeListener(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
get url(): string;
|
|
|
|
urlHandlingStrategy: UrlHandlingStrategy;
|
|
|
|
urlUpdateStrategy: 'deferred' | 'eager';
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export const ROUTER_CONFIGURATION: InjectionToken<ExtraOptions>;
|
2016-11-09 16:33:33 -05:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export const ROUTER_INITIALIZER: InjectionToken<(compRef: ComponentRef<any>) => void>;
|
2016-11-09 16:33:33 -05:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export abstract class RouteReuseStrategy {
|
2017-04-17 14:13:13 -04:00
|
|
|
abstract retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle | null;
|
2016-11-30 02:21:41 -05:00
|
|
|
abstract shouldAttach(route: ActivatedRouteSnapshot): boolean;
|
|
|
|
abstract shouldDetach(route: ActivatedRouteSnapshot): boolean;
|
|
|
|
abstract shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean;
|
2017-04-17 14:13:13 -04:00
|
|
|
abstract store(route: ActivatedRouteSnapshot, handle: DetachedRouteHandle | null): void;
|
2016-11-30 02:21:41 -05:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterEvent {
|
2017-09-05 14:54:33 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string);
|
2021-06-28 13:54:20 -04:00
|
|
|
id: number;
|
|
|
|
url: string;
|
2017-09-05 14:54:33 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterLink implements OnChanges {
|
|
|
|
constructor(router: Router, route: ActivatedRoute, tabIndex: string, renderer: Renderer2, el: ElementRef);
|
2020-10-07 00:13:36 -04:00
|
|
|
fragment?: string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
ngOnChanges(changes: SimpleChanges): void;
|
|
|
|
// (undocumented)
|
|
|
|
onClick(): boolean;
|
2016-07-20 20:51:21 -04:00
|
|
|
preserveFragment: boolean;
|
2020-10-07 00:13:36 -04:00
|
|
|
queryParams?: Params | null;
|
|
|
|
queryParamsHandling?: QueryParamsHandling | null;
|
2020-11-16 18:41:39 -05:00
|
|
|
relativeTo?: ActivatedRoute | null;
|
2016-11-14 21:30:13 -05:00
|
|
|
replaceUrl: boolean;
|
2020-05-08 13:55:40 -04:00
|
|
|
set routerLink(commands: any[] | string | null | undefined);
|
2016-11-14 21:30:13 -05:00
|
|
|
skipLocationChange: boolean;
|
2018-11-29 13:07:24 -05:00
|
|
|
state?: {
|
|
|
|
[k: string]: any;
|
|
|
|
};
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2019-11-09 13:36:22 -05:00
|
|
|
get urlTree(): UrlTree;
|
2016-06-29 18:11:36 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit {
|
|
|
|
constructor(router: Router, element: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef, link?: RouterLink | undefined, linkWithHref?: RouterLinkWithHref | undefined);
|
|
|
|
// (undocumented)
|
2017-02-07 22:27:01 -05:00
|
|
|
readonly isActive: boolean;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-30 17:47:55 -04:00
|
|
|
links: QueryList<RouterLink>;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-30 17:47:55 -04:00
|
|
|
linksWithHrefs: QueryList<RouterLinkWithHref>;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
ngAfterContentInit(): void;
|
|
|
|
// (undocumented)
|
|
|
|
ngOnChanges(changes: SimpleChanges): void;
|
|
|
|
// (undocumented)
|
|
|
|
ngOnDestroy(): void;
|
|
|
|
// (undocumented)
|
2019-11-09 13:36:22 -05:00
|
|
|
set routerLinkActive(data: string[] | string);
|
2016-08-15 03:39:59 -04:00
|
|
|
routerLinkActiveOptions: {
|
|
|
|
exact: boolean;
|
2020-12-29 17:41:42 -05:00
|
|
|
} | IsActiveMatchOptions;
|
2021-06-28 13:54:20 -04:00
|
|
|
}
|
2016-06-29 18:11:36 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterLinkWithHref implements OnChanges, OnDestroy {
|
|
|
|
constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy);
|
2020-10-07 00:13:36 -04:00
|
|
|
fragment?: string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-29 18:11:36 -04:00
|
|
|
href: string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
ngOnChanges(changes: SimpleChanges): any;
|
|
|
|
// (undocumented)
|
|
|
|
ngOnDestroy(): any;
|
|
|
|
// (undocumented)
|
|
|
|
onClick(button: number, ctrlKey: boolean, shiftKey: boolean, altKey: boolean, metaKey: boolean): boolean;
|
2016-07-20 20:51:21 -04:00
|
|
|
preserveFragment: boolean;
|
2020-10-07 00:13:36 -04:00
|
|
|
queryParams?: Params | null;
|
|
|
|
queryParamsHandling?: QueryParamsHandling | null;
|
2020-11-16 18:41:39 -05:00
|
|
|
relativeTo?: ActivatedRoute | null;
|
2016-11-14 21:30:13 -05:00
|
|
|
replaceUrl: boolean;
|
2020-05-08 13:55:40 -04:00
|
|
|
set routerLink(commands: any[] | string | null | undefined);
|
2016-11-14 21:30:13 -05:00
|
|
|
skipLocationChange: boolean;
|
2018-11-29 13:07:24 -05:00
|
|
|
state?: {
|
|
|
|
[k: string]: any;
|
|
|
|
};
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-29 18:11:36 -04:00
|
|
|
target: string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2019-11-09 13:36:22 -05:00
|
|
|
get urlTree(): UrlTree;
|
2016-06-29 18:11:36 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterModule {
|
2017-03-14 17:32:26 -04:00
|
|
|
constructor(guard: any, router: Router);
|
2018-07-09 14:36:30 -04:00
|
|
|
static forChild(routes: Routes): ModuleWithProviders<RouterModule>;
|
|
|
|
static forRoot(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterModule>;
|
2016-07-18 06:50:31 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract {
|
|
|
|
constructor(parentContexts: ChildrenOutletContexts, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string, changeDetector: ChangeDetectorRef);
|
|
|
|
// (undocumented)
|
2019-11-09 13:36:22 -05:00
|
|
|
get activatedRoute(): ActivatedRoute;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2019-11-09 13:36:22 -05:00
|
|
|
get activatedRouteData(): Data;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
activateEvents: EventEmitter<any>;
|
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver | null): void;
|
2016-11-30 02:21:41 -05:00
|
|
|
attach(ref: ComponentRef<any>, activatedRoute: ActivatedRoute): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
get component(): Object;
|
|
|
|
// (undocumented)
|
2016-06-29 18:11:36 -04:00
|
|
|
deactivate(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
deactivateEvents: EventEmitter<any>;
|
2016-11-30 02:21:41 -05:00
|
|
|
detach(): ComponentRef<any>;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
get isActivated(): boolean;
|
|
|
|
// (undocumented)
|
2016-08-01 19:56:38 -04:00
|
|
|
ngOnDestroy(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2017-05-17 20:47:34 -04:00
|
|
|
ngOnInit(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
}
|
2016-06-22 17:56:10 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface RouterOutletContract {
|
2021-02-12 12:45:12 -05:00
|
|
|
activatedRoute: ActivatedRoute | null;
|
|
|
|
activatedRouteData: Data;
|
|
|
|
activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver | null): void;
|
|
|
|
attach(ref: ComponentRef<unknown>, activatedRoute: ActivatedRoute): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
component: Object | null;
|
2021-02-12 12:45:12 -05:00
|
|
|
deactivate(): void;
|
|
|
|
detach(): ComponentRef<unknown>;
|
2021-06-28 13:54:20 -04:00
|
|
|
isActivated: boolean;
|
2021-02-12 12:45:12 -05:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterPreloader implements OnDestroy {
|
2016-11-09 16:33:33 -05:00
|
|
|
constructor(router: Router, moduleLoader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, preloadingStrategy: PreloadingStrategy);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-11-09 16:33:33 -05:00
|
|
|
ngOnDestroy(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-11-09 16:33:33 -05:00
|
|
|
preload(): Observable<any>;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-11-09 16:33:33 -05:00
|
|
|
setUpPreloading(): void;
|
2021-06-28 13:54:20 -04:00
|
|
|
}
|
2016-11-09 16:33:33 -05:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterState extends ɵangular_packages_router_router_m<ActivatedRoute> {
|
2016-06-22 17:56:10 -04:00
|
|
|
snapshot: RouterStateSnapshot;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RouterStateSnapshot extends ɵangular_packages_router_router_m<ActivatedRouteSnapshot> {
|
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
url: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export const ROUTES: InjectionToken<Route[][]>;
|
2016-07-06 19:19:52 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type Routes = Route[];
|
2017-02-15 16:30:40 -05:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class RoutesRecognized extends RouterEvent {
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
id: number,
|
|
|
|
url: string,
|
|
|
|
urlAfterRedirects: string,
|
|
|
|
state: RouterStateSnapshot);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
state: RouterStateSnapshot;
|
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
urlAfterRedirects: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type RunGuardsAndResolvers = 'pathParamsChange' | 'pathParamsOrQueryParamsChange' | 'paramsChange' | 'paramsOrQueryParamsChange' | 'always' | ((from: ActivatedRouteSnapshot, to: ActivatedRouteSnapshot) => boolean);
|
2017-02-24 01:12:30 -05:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class Scroll {
|
2018-05-17 07:33:50 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
routerEvent: NavigationEnd,
|
|
|
|
position: [number, number] | null,
|
|
|
|
anchor: string | null);
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
readonly anchor: string | null;
|
|
|
|
// (undocumented)
|
|
|
|
readonly position: [number, number] | null;
|
|
|
|
// (undocumented)
|
|
|
|
readonly routerEvent: NavigationEnd;
|
|
|
|
// (undocumented)
|
2018-05-17 07:33:50 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export interface UrlCreationOptions {
|
2020-07-24 16:39:56 -04:00
|
|
|
fragment?: string;
|
|
|
|
preserveFragment?: boolean;
|
|
|
|
queryParams?: Params | null;
|
|
|
|
queryParamsHandling?: QueryParamsHandling | null;
|
|
|
|
relativeTo?: ActivatedRoute | null;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export abstract class UrlHandlingStrategy {
|
2016-10-20 13:44:44 -04:00
|
|
|
abstract extract(url: UrlTree): UrlTree;
|
|
|
|
abstract merge(newUrlPart: UrlTree, rawUrl: UrlTree): UrlTree;
|
|
|
|
abstract shouldProcessUrl(url: UrlTree): boolean;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type UrlMatcher = (segments: UrlSegment[], group: UrlSegmentGroup, route: Route) => UrlMatchResult | null;
|
2017-06-24 03:08:18 -04:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export type UrlMatchResult = {
|
2017-06-24 03:08:18 -04:00
|
|
|
consumed: UrlSegment[];
|
|
|
|
posParams?: {
|
|
|
|
[name: string]: UrlSegment;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class UrlSegment {
|
2016-09-12 13:02:48 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
path: string,
|
|
|
|
parameters: {
|
2016-12-09 13:44:46 -05:00
|
|
|
[name: string]: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
});
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
|
|
|
get parameterMap(): ParamMap;
|
|
|
|
parameters: {
|
|
|
|
[name: string]: string;
|
|
|
|
};
|
|
|
|
path: string;
|
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class UrlSegmentGroup {
|
2016-10-20 13:44:44 -04:00
|
|
|
constructor(
|
2018-06-25 05:11:22 -04:00
|
|
|
segments: UrlSegment[],
|
|
|
|
children: {
|
2016-10-20 13:44:44 -04:00
|
|
|
[key: string]: UrlSegmentGroup;
|
|
|
|
});
|
2021-06-28 13:54:20 -04:00
|
|
|
children: {
|
|
|
|
[key: string]: UrlSegmentGroup;
|
|
|
|
};
|
2016-10-20 13:44:44 -04:00
|
|
|
hasChildren(): boolean;
|
2021-06-28 13:54:20 -04:00
|
|
|
get numberOfChildren(): number;
|
|
|
|
parent: UrlSegmentGroup | null;
|
|
|
|
segments: UrlSegment[];
|
|
|
|
// (undocumented)
|
2016-10-20 13:44:44 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export abstract class UrlSerializer {
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract parse(url: string): UrlTree;
|
|
|
|
abstract serialize(tree: UrlTree): string;
|
|
|
|
}
|
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public
|
|
|
|
export class UrlTree {
|
2017-04-17 14:13:13 -04:00
|
|
|
fragment: string | null;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2019-11-09 13:36:22 -05:00
|
|
|
get queryParamMap(): ParamMap;
|
2017-10-24 07:54:08 -04:00
|
|
|
queryParams: Params;
|
2016-07-25 15:15:07 -04:00
|
|
|
root: UrlSegmentGroup;
|
2021-06-28 13:54:20 -04:00
|
|
|
// (undocumented)
|
2016-06-22 17:56:10 -04:00
|
|
|
toString(): string;
|
|
|
|
}
|
2016-11-30 16:52:08 -05:00
|
|
|
|
2021-06-28 13:54:20 -04:00
|
|
|
// @public (undocumented)
|
|
|
|
export const VERSION: Version;
|
|
|
|
|
|
|
|
|
|
|
|
// (No @packageDocumentation comment for this package)
|
|
|
|
|
|
|
|
```
|