feat(router): add support for ng1/ng2 migration (#12160)
This commit is contained in:

committed by
Alex Rickabaugh

parent
b0a03fcab3
commit
8b9ab44eee
25
tools/public_api_guard/router/index.d.ts
vendored
25
tools/public_api_guard/router/index.d.ts
vendored
@ -202,6 +202,7 @@ export declare class Router {
|
||||
navigated: boolean;
|
||||
routerState: RouterState;
|
||||
url: string;
|
||||
urlHandlingStrategy: UrlHandlingStrategy;
|
||||
constructor(rootComponentType: Type<any>, urlSerializer: UrlSerializer, outletMap: RouterOutletMap, location: Location, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Routes);
|
||||
createUrlTree(commands: any[], {relativeTo, queryParams, fragment, preserveQueryParams, preserveFragment}?: NavigationExtras): UrlTree;
|
||||
dispose(): void;
|
||||
@ -322,6 +323,13 @@ export declare class RoutesRecognized {
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export declare abstract class UrlHandlingStrategy {
|
||||
abstract extract(url: UrlTree): UrlTree;
|
||||
abstract merge(newUrlPart: UrlTree, rawUrl: UrlTree): UrlTree;
|
||||
abstract shouldProcessUrl(url: UrlTree): boolean;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class UrlSegment {
|
||||
parameters: {
|
||||
@ -336,6 +344,23 @@ export declare class UrlSegment {
|
||||
toString(): string;
|
||||
}
|
||||
|
||||
/** @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;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare abstract class UrlSerializer {
|
||||
abstract parse(url: string): UrlTree;
|
||||
|
Reference in New Issue
Block a user