@angular/router 12.2.8 → 13.0.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{esm2015/index.js → esm2020/index.mjs} +0 -0
- package/{esm2015/public_api.js → esm2020/public_api.mjs} +0 -0
- package/esm2020/router.mjs +5 -0
- package/{esm2015/src/apply_redirects.js → esm2020/src/apply_redirects.mjs} +0 -0
- package/esm2020/src/components/empty_outlet.mjs +29 -0
- package/esm2020/src/config.mjs +14 -0
- package/{esm2015/src/create_router_state.js → esm2020/src/create_router_state.mjs} +0 -0
- package/{esm2015/src/create_url_tree.js → esm2020/src/create_url_tree.mjs} +0 -0
- package/esm2020/src/directives/router_link.mjs +353 -0
- package/esm2020/src/directives/router_link_active.mjs +215 -0
- package/esm2020/src/directives/router_outlet.mjs +219 -0
- package/{esm2015/src/events.js → esm2020/src/events.mjs} +0 -0
- package/{esm2015/src/index.js → esm2020/src/index.mjs} +1 -1
- package/{esm2015/src/interfaces.js → esm2020/src/interfaces.mjs} +1 -1
- package/{esm2015/src/operators/activate_routes.js → esm2020/src/operators/activate_routes.mjs} +0 -0
- package/esm2020/src/operators/apply_redirects.mjs +14 -0
- package/esm2020/src/operators/check_guards.mjs +138 -0
- package/{esm2015/src/operators/prioritized_guard_value.js → esm2020/src/operators/prioritized_guard_value.mjs} +0 -0
- package/esm2020/src/operators/recognize.mjs +14 -0
- package/esm2020/src/operators/resolve_data.mjs +59 -0
- package/{esm2015/src/operators/switch_tap.js → esm2020/src/operators/switch_tap.mjs} +0 -0
- package/{esm2015/src/private_export.js → esm2020/src/private_export.mjs} +0 -0
- package/esm2020/src/recognize.mjs +262 -0
- package/{esm2015/src/route_reuse_strategy.js → esm2020/src/route_reuse_strategy.mjs} +0 -0
- package/esm2020/src/router.mjs +1009 -0
- package/esm2020/src/router_config_loader.mjs +71 -0
- package/esm2020/src/router_module.mjs +367 -0
- package/{esm2015/src/router_outlet_context.js → esm2020/src/router_outlet_context.mjs} +0 -0
- package/esm2020/src/router_preloader.mjs +127 -0
- package/esm2020/src/router_scroller.mjs +95 -0
- package/esm2020/src/router_state.mjs +404 -0
- package/{esm2015/src/shared.js → esm2020/src/shared.mjs} +0 -0
- package/{esm2015/src/url_handling_strategy.js → esm2020/src/url_handling_strategy.mjs} +0 -0
- package/{esm2015/src/url_tree.js → esm2020/src/url_tree.mjs} +2 -2
- package/{esm2015/src/utils/collection.js → esm2020/src/utils/collection.mjs} +0 -0
- package/{esm2015/src/utils/config.js → esm2020/src/utils/config.mjs} +2 -2
- package/esm2020/src/utils/config_matching.mjs +145 -0
- package/{esm2015/src/utils/preactivation.js → esm2020/src/utils/preactivation.mjs} +0 -0
- package/{esm2015/src/utils/tree.js → esm2020/src/utils/tree.mjs} +0 -0
- package/{esm2015/src/utils/type_guards.js → esm2020/src/utils/type_guards.mjs} +0 -0
- package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
- package/{esm2015/testing/index.js → esm2020/testing/index.mjs} +0 -0
- package/{esm2015/testing/public_api.js → esm2020/testing/public_api.mjs} +0 -0
- package/esm2020/testing/src/extra_router_testing_providers.mjs +10 -0
- package/esm2020/testing/src/router_testing_module.mjs +122 -0
- package/esm2020/testing/src/spy_ng_module_factory_loader.mjs +10 -0
- package/esm2020/testing/src/testing.mjs +15 -0
- package/{esm2015/testing/testing.js → esm2020/testing/testing.mjs} +0 -0
- package/{esm2015/upgrade/index.js → esm2020/upgrade/index.mjs} +0 -0
- package/{esm2015/upgrade/public_api.js → esm2020/upgrade/public_api.mjs} +0 -0
- package/esm2020/upgrade/src/upgrade.mjs +120 -0
- package/{esm2015/upgrade/upgrade.js → esm2020/upgrade/upgrade.mjs} +0 -0
- package/fesm2015/{router.js → router.mjs} +593 -588
- package/fesm2015/router.mjs.map +1 -0
- package/fesm2015/testing.mjs +179 -0
- package/fesm2015/testing.mjs.map +1 -0
- package/fesm2015/{upgrade.js → upgrade.mjs} +4 -5
- package/fesm2015/upgrade.mjs.map +1 -0
- package/fesm2020/router.mjs +6162 -0
- package/fesm2020/router.mjs.map +1 -0
- package/fesm2020/testing.mjs +179 -0
- package/fesm2020/testing.mjs.map +1 -0
- package/fesm2020/upgrade.mjs +150 -0
- package/fesm2020/upgrade.mjs.map +1 -0
- package/package.json +34 -10
- package/router.d.ts +149 -140
- package/testing/package.json +5 -5
- package/testing/testing.d.ts +9 -66
- package/upgrade/package.json +5 -5
- package/upgrade/upgrade.d.ts +1 -1
- package/bundles/router-testing.umd.js +0 -541
- package/bundles/router-testing.umd.js.map +0 -1
- package/bundles/router-upgrade.umd.js +0 -157
- package/bundles/router-upgrade.umd.js.map +0 -1
- package/bundles/router.umd.js +0 -6879
- package/bundles/router.umd.js.map +0 -1
- package/esm2015/router.externs.js +0 -6
- package/esm2015/router.js +0 -9
- package/esm2015/src/components/empty_outlet.js +0 -24
- package/esm2015/src/config.js +0 -14
- package/esm2015/src/directives/router_link.js +0 -293
- package/esm2015/src/directives/router_link_active.js +0 -190
- package/esm2015/src/directives/router_outlet.js +0 -193
- package/esm2015/src/operators/apply_redirects.js +0 -14
- package/esm2015/src/operators/check_guards.js +0 -138
- package/esm2015/src/operators/recognize.js +0 -14
- package/esm2015/src/operators/resolve_data.js +0 -56
- package/esm2015/src/recognize.js +0 -262
- package/esm2015/src/router.js +0 -1079
- package/esm2015/src/router_config_loader.js +0 -76
- package/esm2015/src/router_module.js +0 -363
- package/esm2015/src/router_preloader.js +0 -130
- package/esm2015/src/router_scroller.js +0 -95
- package/esm2015/src/router_state.js +0 -404
- package/esm2015/src/utils/config_matching.js +0 -145
- package/esm2015/testing/src/router_testing_module.js +0 -166
- package/esm2015/testing/src/testing.js +0 -14
- package/esm2015/testing/testing.externs.js +0 -6
- package/esm2015/upgrade/src/upgrade.js +0 -122
- package/esm2015/upgrade/upgrade.externs.js +0 -6
- package/fesm2015/router.js.map +0 -1
- package/fesm2015/testing.js +0 -204
- package/fesm2015/testing.js.map +0 -1
- package/fesm2015/upgrade.js.map +0 -1
- package/router.metadata.json +0 -1
- package/testing/testing.metadata.json +0 -1
- package/testing.d.ts +0 -7
- package/testing.metadata.json +0 -1
- package/upgrade/upgrade.metadata.json +0 -1
- package/upgrade.d.ts +0 -7
- package/upgrade.metadata.json +0 -1
package/router.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v13.0.0-next.11
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -11,21 +11,17 @@ import { ComponentFactoryResolver } from '@angular/core';
|
|
|
11
11
|
import { ComponentRef } from '@angular/core';
|
|
12
12
|
import { ElementRef } from '@angular/core';
|
|
13
13
|
import { EventEmitter } from '@angular/core';
|
|
14
|
-
import
|
|
14
|
+
import * as i0 from '@angular/core';
|
|
15
15
|
import { InjectionToken } from '@angular/core';
|
|
16
16
|
import { Injector } from '@angular/core';
|
|
17
17
|
import { Location as Location_2 } from '@angular/common';
|
|
18
18
|
import { LocationStrategy } from '@angular/common';
|
|
19
19
|
import { ModuleWithProviders } from '@angular/core';
|
|
20
20
|
import { NgModuleFactory } from '@angular/core';
|
|
21
|
-
import { NgModuleFactoryLoader } from '@angular/core';
|
|
22
|
-
import { NgProbeToken } from '@angular/core';
|
|
23
21
|
import { Observable } from 'rxjs';
|
|
24
22
|
import { OnChanges } from '@angular/core';
|
|
25
23
|
import { OnDestroy } from '@angular/core';
|
|
26
24
|
import { OnInit } from '@angular/core';
|
|
27
|
-
import { PathLocationStrategy } from '@angular/common';
|
|
28
|
-
import { PlatformLocation } from '@angular/common';
|
|
29
25
|
import { Provider } from '@angular/core';
|
|
30
26
|
import { QueryList } from '@angular/core';
|
|
31
27
|
import { Renderer2 } from '@angular/core';
|
|
@@ -33,7 +29,6 @@ import { SimpleChanges } from '@angular/core';
|
|
|
33
29
|
import { Type } from '@angular/core';
|
|
34
30
|
import { Version } from '@angular/core';
|
|
35
31
|
import { ViewContainerRef } from '@angular/core';
|
|
36
|
-
import { ViewportScroller } from '@angular/common';
|
|
37
32
|
|
|
38
33
|
/**
|
|
39
34
|
* Provides access to information about a route associated with a component
|
|
@@ -538,7 +533,7 @@ export declare interface CanDeactivate<T> {
|
|
|
538
533
|
* {
|
|
539
534
|
* path: 'team/:id',
|
|
540
535
|
* component: TeamComponent,
|
|
541
|
-
* loadChildren: 'team.
|
|
536
|
+
* loadChildren: () => import('./team').then(mod => mod.TeamModule),
|
|
542
537
|
* canLoad: [CanLoadTeamSection]
|
|
543
538
|
* }
|
|
544
539
|
* ])
|
|
@@ -557,7 +552,7 @@ export declare interface CanDeactivate<T> {
|
|
|
557
552
|
* {
|
|
558
553
|
* path: 'team/:id',
|
|
559
554
|
* component: TeamComponent,
|
|
560
|
-
* loadChildren: 'team.
|
|
555
|
+
* loadChildren: () => import('./team').then(mod => mod.TeamModule),
|
|
561
556
|
* canLoad: ['canLoadTeamSection']
|
|
562
557
|
* }
|
|
563
558
|
* ])
|
|
@@ -682,18 +677,6 @@ export declare class DefaultUrlSerializer implements UrlSerializer {
|
|
|
682
677
|
serialize(tree: UrlTree): string;
|
|
683
678
|
}
|
|
684
679
|
|
|
685
|
-
/**
|
|
686
|
-
* A string of the form `path/to/file#exportName` that acts as a URL for a set of routes to load.
|
|
687
|
-
*
|
|
688
|
-
* @see `loadChildrenCallback`
|
|
689
|
-
* @publicApi
|
|
690
|
-
* @deprecated The `string` form of `loadChildren` is deprecated in favor of the
|
|
691
|
-
* `LoadChildrenCallback` function which uses the ES dynamic `import()` expression.
|
|
692
|
-
* This offers a more natural and standards-based mechanism to dynamically
|
|
693
|
-
* load an ES module at runtime.
|
|
694
|
-
*/
|
|
695
|
-
export declare type DeprecatedLoadChildren = string;
|
|
696
|
-
|
|
697
680
|
/**
|
|
698
681
|
* @description
|
|
699
682
|
*
|
|
@@ -977,6 +960,33 @@ export declare class GuardsCheckStart extends RouterEvent {
|
|
|
977
960
|
toString(): string;
|
|
978
961
|
}
|
|
979
962
|
|
|
963
|
+
declare namespace i1 {
|
|
964
|
+
export {
|
|
965
|
+
RouterOutletContract,
|
|
966
|
+
RouterOutlet
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
declare namespace i2 {
|
|
971
|
+
export {
|
|
972
|
+
RouterLink,
|
|
973
|
+
RouterLinkWithHref
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
declare namespace i3 {
|
|
978
|
+
export {
|
|
979
|
+
RouterLinkActive
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
declare namespace i4 {
|
|
984
|
+
export {
|
|
985
|
+
ɵEmptyOutletComponent,
|
|
986
|
+
ɵEmptyOutletComponent as EmptyOutletComponent
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
|
|
980
990
|
/**
|
|
981
991
|
* Allowed values in an `ExtraOptions` object that configure
|
|
982
992
|
* when the router performs the initial navigation operation.
|
|
@@ -1055,13 +1065,10 @@ export declare interface IsActiveMatchOptions {
|
|
|
1055
1065
|
*
|
|
1056
1066
|
* A function that returns a set of routes to load.
|
|
1057
1067
|
*
|
|
1058
|
-
*
|
|
1059
|
-
* form (`LoadChildrenCallback`) should be used instead.
|
|
1060
|
-
*
|
|
1061
|
-
* @see `loadChildrenCallback`
|
|
1068
|
+
* @see `LoadChildrenCallback`
|
|
1062
1069
|
* @publicApi
|
|
1063
1070
|
*/
|
|
1064
|
-
export declare type LoadChildren = LoadChildrenCallback
|
|
1071
|
+
export declare type LoadChildren = LoadChildrenCallback;
|
|
1065
1072
|
|
|
1066
1073
|
/**
|
|
1067
1074
|
*
|
|
@@ -2070,11 +2077,6 @@ export declare class Router {
|
|
|
2070
2077
|
private currentNavigation;
|
|
2071
2078
|
private disposed;
|
|
2072
2079
|
private locationSubscription?;
|
|
2073
|
-
/**
|
|
2074
|
-
* Tracks the previously seen location change from the location subscription so we can compare
|
|
2075
|
-
* the two latest to see if they are duplicates. See setUpLocationChangeListener.
|
|
2076
|
-
*/
|
|
2077
|
-
private lastLocationChangeInfo;
|
|
2078
2080
|
private navigationId;
|
|
2079
2081
|
/**
|
|
2080
2082
|
* The id of the currently active page in the router.
|
|
@@ -2166,12 +2168,34 @@ export declare class Router {
|
|
|
2166
2168
|
* @see `RouterModule`
|
|
2167
2169
|
*/
|
|
2168
2170
|
relativeLinkResolution: 'legacy' | 'corrected';
|
|
2171
|
+
/**
|
|
2172
|
+
* Configures how the Router attempts to restore state when a navigation is cancelled.
|
|
2173
|
+
*
|
|
2174
|
+
* 'replace' - Always uses `location.replaceState` to set the browser state to the state of the
|
|
2175
|
+
* router before the navigation started. This means that if the URL of the browser is updated
|
|
2176
|
+
* _before_ the navigation is canceled, the Router will simply replace the item in history rather
|
|
2177
|
+
* than trying to restore to the previous location in the session history. This happens most
|
|
2178
|
+
* frequently with `urlUpdateStrategy: 'eager'` and navigations with the browser back/forward
|
|
2179
|
+
* buttons.
|
|
2180
|
+
*
|
|
2181
|
+
* 'computed' - Will attempt to return to the same index in the session history that corresponds
|
|
2182
|
+
* to the Angular route when the navigation gets cancelled. For example, if the browser back
|
|
2183
|
+
* button is clicked and the navigation is cancelled, the Router will trigger a forward navigation
|
|
2184
|
+
* and vice versa.
|
|
2185
|
+
*
|
|
2186
|
+
* Note: the 'computed' option is incompatible with any `UrlHandlingStrategy` which only
|
|
2187
|
+
* handles a portion of the URL because the history restoration navigates to the previous place in
|
|
2188
|
+
* the browser history rather than simply resetting a portion of the URL.
|
|
2189
|
+
*
|
|
2190
|
+
* The default value is `replace`.
|
|
2191
|
+
*
|
|
2192
|
+
*/
|
|
2193
|
+
canceledNavigationResolution: 'replace' | 'computed';
|
|
2169
2194
|
/**
|
|
2170
2195
|
* Creates the router service.
|
|
2171
2196
|
*/
|
|
2172
|
-
constructor(rootComponentType: Type<any> | null, urlSerializer: UrlSerializer, rootContexts: ChildrenOutletContexts, location: Location_2, injector: Injector,
|
|
2197
|
+
constructor(rootComponentType: Type<any> | null, urlSerializer: UrlSerializer, rootContexts: ChildrenOutletContexts, location: Location_2, injector: Injector, compiler: Compiler, config: Routes);
|
|
2173
2198
|
private setupNavigations;
|
|
2174
|
-
private getTransition;
|
|
2175
2199
|
private setTransition;
|
|
2176
2200
|
/**
|
|
2177
2201
|
* Sets up the location change listener and performs the initial navigation.
|
|
@@ -2183,15 +2207,6 @@ export declare class Router {
|
|
|
2183
2207
|
* navigation so that the correct events, guards, etc. are triggered.
|
|
2184
2208
|
*/
|
|
2185
2209
|
setUpLocationChangeListener(): void;
|
|
2186
|
-
/** Extracts router-related information from a `PopStateEvent`. */
|
|
2187
|
-
private extractLocationChangeInfoFromEvent;
|
|
2188
|
-
/**
|
|
2189
|
-
* Determines whether two events triggered by the Location subscription are due to the same
|
|
2190
|
-
* navigation. The location subscription can fire two events (popstate and hashchange) for a
|
|
2191
|
-
* single navigation. The second one should be ignored, that is, we should not schedule another
|
|
2192
|
-
* navigation in the Router.
|
|
2193
|
-
*/
|
|
2194
|
-
private shouldScheduleNavigation;
|
|
2195
2210
|
/** The current URL. */
|
|
2196
2211
|
get url(): string;
|
|
2197
2212
|
/**
|
|
@@ -2358,6 +2373,8 @@ export declare class Router {
|
|
|
2358
2373
|
private resetUrlToCurrentUrlTree;
|
|
2359
2374
|
private cancelNavigationTransition;
|
|
2360
2375
|
private generateNgRouterState;
|
|
2376
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Router, never>;
|
|
2377
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<Router>;
|
|
2361
2378
|
}
|
|
2362
2379
|
|
|
2363
2380
|
/**
|
|
@@ -2535,6 +2552,9 @@ export declare class RouterEvent {
|
|
|
2535
2552
|
export declare class RouterLink implements OnChanges {
|
|
2536
2553
|
private router;
|
|
2537
2554
|
private route;
|
|
2555
|
+
private readonly tabIndexAttribute;
|
|
2556
|
+
private readonly renderer;
|
|
2557
|
+
private readonly el;
|
|
2538
2558
|
/**
|
|
2539
2559
|
* Passed to {@link Router#createUrlTree Router#createUrlTree} as part of the
|
|
2540
2560
|
* `UrlCreationOptions`.
|
|
@@ -2597,21 +2617,27 @@ export declare class RouterLink implements OnChanges {
|
|
|
2597
2617
|
*/
|
|
2598
2618
|
relativeTo?: ActivatedRoute | null;
|
|
2599
2619
|
private commands;
|
|
2600
|
-
|
|
2601
|
-
|
|
2620
|
+
constructor(router: Router, route: ActivatedRoute, tabIndexAttribute: string | null | undefined, renderer: Renderer2, el: ElementRef);
|
|
2621
|
+
/**
|
|
2622
|
+
* Modifies the tab index if there was not a tabindex attribute on the element during
|
|
2623
|
+
* instantiation.
|
|
2624
|
+
*/
|
|
2625
|
+
private setTabIndexIfNotOnNativeEl;
|
|
2602
2626
|
/** @nodoc */
|
|
2603
2627
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2604
2628
|
/**
|
|
2605
2629
|
* Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
2606
2630
|
* - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
2607
2631
|
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
2608
|
-
* - **null|undefined**:
|
|
2632
|
+
* - **null|undefined**: effectively disables the `routerLink`
|
|
2609
2633
|
* @see {@link Router#createUrlTree Router#createUrlTree}
|
|
2610
2634
|
*/
|
|
2611
2635
|
set routerLink(commands: any[] | string | null | undefined);
|
|
2612
2636
|
/** @nodoc */
|
|
2613
2637
|
onClick(): boolean;
|
|
2614
|
-
get urlTree(): UrlTree;
|
|
2638
|
+
get urlTree(): UrlTree | null;
|
|
2639
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterLink, [null, null, { attribute: "tabindex"; }, null, null]>;
|
|
2640
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLink, ":not(a):not(area)[routerLink]", never, { "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "state": "state"; "relativeTo": "relativeTo"; "routerLink": "routerLink"; }, {}, never>;
|
|
2615
2641
|
}
|
|
2616
2642
|
|
|
2617
2643
|
/**
|
|
@@ -2696,6 +2722,23 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
|
|
|
2696
2722
|
routerLinkActiveOptions: {
|
|
2697
2723
|
exact: boolean;
|
|
2698
2724
|
} | IsActiveMatchOptions;
|
|
2725
|
+
/**
|
|
2726
|
+
*
|
|
2727
|
+
* You can use the output `isActiveChange` to get notified each time the link becomes
|
|
2728
|
+
* active or inactive.
|
|
2729
|
+
*
|
|
2730
|
+
* Emits:
|
|
2731
|
+
* true -> Route is active
|
|
2732
|
+
* false -> Route is inactive
|
|
2733
|
+
*
|
|
2734
|
+
* ```
|
|
2735
|
+
* <a
|
|
2736
|
+
* routerLink="/user/bob"
|
|
2737
|
+
* routerLinkActive="active-link"
|
|
2738
|
+
* (isActiveChange)="this.onRouterLinkActive($event)">Bob</a>
|
|
2739
|
+
* ```
|
|
2740
|
+
*/
|
|
2741
|
+
readonly isActiveChange: EventEmitter<boolean>;
|
|
2699
2742
|
constructor(router: Router, element: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef, link?: RouterLink | undefined, linkWithHref?: RouterLinkWithHref | undefined);
|
|
2700
2743
|
/** @nodoc */
|
|
2701
2744
|
ngAfterContentInit(): void;
|
|
@@ -2708,6 +2751,8 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
|
|
|
2708
2751
|
private update;
|
|
2709
2752
|
private isLinkActive;
|
|
2710
2753
|
private hasActiveLinks;
|
|
2754
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterLinkActive, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
2755
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkActive, "[routerLinkActive]", ["routerLinkActive"], { "routerLinkActiveOptions": "routerLinkActiveOptions"; "routerLinkActive": "routerLinkActive"; }, { "isActiveChange": "isActiveChange"; }, ["links", "linksWithHrefs"]>;
|
|
2711
2756
|
}
|
|
2712
2757
|
|
|
2713
2758
|
/**
|
|
@@ -2789,14 +2834,13 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
|
|
|
2789
2834
|
relativeTo?: ActivatedRoute | null;
|
|
2790
2835
|
private commands;
|
|
2791
2836
|
private subscription;
|
|
2792
|
-
|
|
2793
|
-
href: string;
|
|
2837
|
+
href: string | null;
|
|
2794
2838
|
constructor(router: Router, route: ActivatedRoute, locationStrategy: LocationStrategy);
|
|
2795
2839
|
/**
|
|
2796
2840
|
* Commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
2797
2841
|
* - **array**: commands to pass to {@link Router#createUrlTree Router#createUrlTree}.
|
|
2798
2842
|
* - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
|
|
2799
|
-
* - **null|undefined**:
|
|
2843
|
+
* - **null|undefined**: Disables the link by removing the `href`
|
|
2800
2844
|
* @see {@link Router#createUrlTree Router#createUrlTree}
|
|
2801
2845
|
*/
|
|
2802
2846
|
set routerLink(commands: any[] | string | null | undefined);
|
|
@@ -2807,7 +2851,9 @@ export declare class RouterLinkWithHref implements OnChanges, OnDestroy {
|
|
|
2807
2851
|
/** @nodoc */
|
|
2808
2852
|
onClick(button: number, ctrlKey: boolean, shiftKey: boolean, altKey: boolean, metaKey: boolean): boolean;
|
|
2809
2853
|
private updateTargetUrlAndHref;
|
|
2810
|
-
get urlTree(): UrlTree;
|
|
2854
|
+
get urlTree(): UrlTree | null;
|
|
2855
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterLinkWithHref, never>;
|
|
2856
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLinkWithHref, "a[routerLink],area[routerLink]", never, { "target": "target"; "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; "state": "state"; "relativeTo": "relativeTo"; "routerLink": "routerLink"; }, {}, never>;
|
|
2811
2857
|
}
|
|
2812
2858
|
|
|
2813
2859
|
/**
|
|
@@ -2869,6 +2915,9 @@ export declare class RouterModule {
|
|
|
2869
2915
|
*
|
|
2870
2916
|
*/
|
|
2871
2917
|
static forChild(routes: Routes): ModuleWithProviders<RouterModule>;
|
|
2918
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterModule, [{ optional: true; }, { optional: true; }]>;
|
|
2919
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RouterModule, [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i2.RouterLinkWithHref, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent], never, [typeof i1.RouterOutlet, typeof i2.RouterLink, typeof i2.RouterLinkWithHref, typeof i3.RouterLinkActive, typeof i4.ɵEmptyOutletComponent]>;
|
|
2920
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RouterModule>;
|
|
2872
2921
|
}
|
|
2873
2922
|
|
|
2874
2923
|
/**
|
|
@@ -2901,12 +2950,17 @@ export declare class RouterModule {
|
|
|
2901
2950
|
* `http://base-path/primary-route-path(outlet-name:route-path)`
|
|
2902
2951
|
*
|
|
2903
2952
|
* A router outlet emits an activate event when a new component is instantiated,
|
|
2904
|
-
*
|
|
2953
|
+
* deactivate event when a component is destroyed.
|
|
2954
|
+
* An attached event emits when the `RouteReuseStrategy` instructs the outlet to reattach the
|
|
2955
|
+
* subtree, and the detached event emits when the `RouteReuseStrategy` instructs the outlet to
|
|
2956
|
+
* detach the subtree.
|
|
2905
2957
|
*
|
|
2906
2958
|
* ```
|
|
2907
2959
|
* <router-outlet
|
|
2908
2960
|
* (activate)='onActivate($event)'
|
|
2909
|
-
* (deactivate)='onDeactivate($event)'
|
|
2961
|
+
* (deactivate)='onDeactivate($event)'
|
|
2962
|
+
* (attach)='onAttach($event)'
|
|
2963
|
+
* (detach)='onDetach($event)'></router-outlet>
|
|
2910
2964
|
* ```
|
|
2911
2965
|
*
|
|
2912
2966
|
* @see [Routing tutorial](guide/router-tutorial-toh#named-outlets "Example of a named
|
|
@@ -2927,6 +2981,16 @@ export declare class RouterOutlet implements OnDestroy, OnInit, RouterOutletCont
|
|
|
2927
2981
|
private name;
|
|
2928
2982
|
activateEvents: EventEmitter<any>;
|
|
2929
2983
|
deactivateEvents: EventEmitter<any>;
|
|
2984
|
+
/**
|
|
2985
|
+
* Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a
|
|
2986
|
+
* previously detached subtree.
|
|
2987
|
+
**/
|
|
2988
|
+
attachEvents: EventEmitter<unknown>;
|
|
2989
|
+
/**
|
|
2990
|
+
* Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the
|
|
2991
|
+
* subtree.
|
|
2992
|
+
*/
|
|
2993
|
+
detachEvents: EventEmitter<unknown>;
|
|
2930
2994
|
constructor(parentContexts: ChildrenOutletContexts, location: ViewContainerRef, resolver: ComponentFactoryResolver, name: string, changeDetector: ChangeDetectorRef);
|
|
2931
2995
|
/** @nodoc */
|
|
2932
2996
|
ngOnDestroy(): void;
|
|
@@ -2950,6 +3014,8 @@ export declare class RouterOutlet implements OnDestroy, OnInit, RouterOutletCont
|
|
|
2950
3014
|
attach(ref: ComponentRef<any>, activatedRoute: ActivatedRoute): void;
|
|
2951
3015
|
deactivate(): void;
|
|
2952
3016
|
activateWith(activatedRoute: ActivatedRoute, resolver: ComponentFactoryResolver | null): void;
|
|
3017
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterOutlet, [null, null, null, { attribute: "name"; }, null]>;
|
|
3018
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RouterOutlet, "router-outlet", ["outlet"], {}, { "activateEvents": "activate"; "deactivateEvents": "deactivate"; "attachEvents": "attach"; "detachEvents": "detach"; }, never>;
|
|
2953
3019
|
}
|
|
2954
3020
|
|
|
2955
3021
|
/**
|
|
@@ -3012,6 +3078,16 @@ export declare interface RouterOutletContract {
|
|
|
3012
3078
|
* Emits a deactivate event when a component is destroyed.
|
|
3013
3079
|
*/
|
|
3014
3080
|
deactivateEvents?: EventEmitter<unknown>;
|
|
3081
|
+
/**
|
|
3082
|
+
* Emits an attached component instance when the `RouteReuseStrategy` instructs to re-attach a
|
|
3083
|
+
* previously detached subtree.
|
|
3084
|
+
**/
|
|
3085
|
+
attachEvents?: EventEmitter<unknown>;
|
|
3086
|
+
/**
|
|
3087
|
+
* Emits a detached component instance when the `RouteReuseStrategy` instructs to detach the
|
|
3088
|
+
* subtree.
|
|
3089
|
+
*/
|
|
3090
|
+
detachEvents?: EventEmitter<unknown>;
|
|
3015
3091
|
}
|
|
3016
3092
|
|
|
3017
3093
|
/**
|
|
@@ -3032,13 +3108,15 @@ export declare class RouterPreloader implements OnDestroy {
|
|
|
3032
3108
|
private preloadingStrategy;
|
|
3033
3109
|
private loader;
|
|
3034
3110
|
private subscription?;
|
|
3035
|
-
constructor(router: Router,
|
|
3111
|
+
constructor(router: Router, compiler: Compiler, injector: Injector, preloadingStrategy: PreloadingStrategy);
|
|
3036
3112
|
setUpPreloading(): void;
|
|
3037
3113
|
preload(): Observable<any>;
|
|
3038
3114
|
/** @nodoc */
|
|
3039
3115
|
ngOnDestroy(): void;
|
|
3040
3116
|
private processRoutes;
|
|
3041
3117
|
private preloadConfig;
|
|
3118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterPreloader, never>;
|
|
3119
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RouterPreloader>;
|
|
3042
3120
|
}
|
|
3043
3121
|
|
|
3044
3122
|
/**
|
|
@@ -3072,7 +3150,7 @@ export declare class RouterPreloader implements OnDestroy {
|
|
|
3072
3150
|
*
|
|
3073
3151
|
* @publicApi
|
|
3074
3152
|
*/
|
|
3075
|
-
export declare class RouterState extends
|
|
3153
|
+
export declare class RouterState extends Tree<ActivatedRoute> {
|
|
3076
3154
|
/** The current snapshot of the router state */
|
|
3077
3155
|
snapshot: RouterStateSnapshot;
|
|
3078
3156
|
toString(): string;
|
|
@@ -3105,7 +3183,7 @@ export declare class RouterState extends ɵangular_packages_router_router_m<Acti
|
|
|
3105
3183
|
*
|
|
3106
3184
|
* @publicApi
|
|
3107
3185
|
*/
|
|
3108
|
-
export declare class RouterStateSnapshot extends
|
|
3186
|
+
export declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
|
|
3109
3187
|
/** The url from which this snapshot was created */
|
|
3110
3188
|
url: string;
|
|
3111
3189
|
toString(): string;
|
|
@@ -3189,6 +3267,19 @@ export declare class Scroll {
|
|
|
3189
3267
|
toString(): string;
|
|
3190
3268
|
}
|
|
3191
3269
|
|
|
3270
|
+
|
|
3271
|
+
declare class Tree<T> {
|
|
3272
|
+
constructor(root: TreeNode<T>);
|
|
3273
|
+
get root(): T;
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
declare class TreeNode<T> {
|
|
3277
|
+
value: T;
|
|
3278
|
+
children: TreeNode<T>[];
|
|
3279
|
+
constructor(value: T, children: TreeNode<T>[]);
|
|
3280
|
+
toString(): string;
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3192
3283
|
/**
|
|
3193
3284
|
* @description
|
|
3194
3285
|
*
|
|
@@ -3505,90 +3596,8 @@ export declare class UrlTree {
|
|
|
3505
3596
|
*/
|
|
3506
3597
|
export declare const VERSION: Version;
|
|
3507
3598
|
|
|
3508
|
-
/**
|
|
3509
|
-
* @docsNotRequired
|
|
3510
|
-
*/
|
|
3511
|
-
export declare const ɵangular_packages_router_router_a: InjectionToken<void>;
|
|
3512
|
-
|
|
3513
|
-
export declare function ɵangular_packages_router_router_b(): NgProbeToken;
|
|
3514
|
-
|
|
3515
|
-
export declare function ɵangular_packages_router_router_c(router: Router, viewportScroller: ViewportScroller, config: ExtraOptions): ɵangular_packages_router_router_o;
|
|
3516
|
-
|
|
3517
|
-
export declare function ɵangular_packages_router_router_d(platformLocationStrategy: PlatformLocation, baseHref: string, options?: ExtraOptions): HashLocationStrategy | PathLocationStrategy;
|
|
3518
|
-
|
|
3519
|
-
export declare function ɵangular_packages_router_router_e(router: Router): any;
|
|
3520
|
-
|
|
3521
|
-
export declare function ɵangular_packages_router_router_f(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location_2, injector: Injector, loader: NgModuleFactoryLoader, compiler: Compiler, config: Route[][], opts?: ExtraOptions, urlHandlingStrategy?: UrlHandlingStrategy, routeReuseStrategy?: RouteReuseStrategy): Router;
|
|
3522
|
-
|
|
3523
|
-
export declare function ɵangular_packages_router_router_g(router: Router): ActivatedRoute;
|
|
3524
|
-
|
|
3525
|
-
/**
|
|
3526
|
-
* Router initialization requires two steps:
|
|
3527
|
-
*
|
|
3528
|
-
* First, we start the navigation in a `APP_INITIALIZER` to block the bootstrap if
|
|
3529
|
-
* a resolver or a guard executes asynchronously.
|
|
3530
|
-
*
|
|
3531
|
-
* Next, we actually run activation in a `BOOTSTRAP_LISTENER`, using the
|
|
3532
|
-
* `afterPreactivation` hook provided by the router.
|
|
3533
|
-
* The router navigation starts, reaches the point when preactivation is done, and then
|
|
3534
|
-
* pauses. It waits for the hook to be resolved. We then resolve it only in a bootstrap listener.
|
|
3535
|
-
*/
|
|
3536
|
-
export declare class ɵangular_packages_router_router_h implements OnDestroy {
|
|
3537
|
-
private injector;
|
|
3538
|
-
private initNavigation;
|
|
3539
|
-
private destroyed;
|
|
3540
|
-
private resultOfPreactivationDone;
|
|
3541
|
-
constructor(injector: Injector);
|
|
3542
|
-
appInitializer(): Promise<any>;
|
|
3543
|
-
bootstrapListener(bootstrappedComponentRef: ComponentRef<any>): void;
|
|
3544
|
-
ngOnDestroy(): void;
|
|
3545
|
-
}
|
|
3546
|
-
|
|
3547
|
-
export declare function ɵangular_packages_router_router_i(r: ɵangular_packages_router_router_h): () => Promise<any>;
|
|
3548
|
-
|
|
3549
|
-
export declare function ɵangular_packages_router_router_j(r: ɵangular_packages_router_router_h): (bootstrappedComponentRef: ComponentRef<any>) => void;
|
|
3550
|
-
|
|
3551
|
-
export declare function ɵangular_packages_router_router_k(): ReadonlyArray<Provider>;
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
export declare class ɵangular_packages_router_router_m<T> {
|
|
3555
|
-
constructor(root: ɵangular_packages_router_router_n<T>);
|
|
3556
|
-
get root(): T;
|
|
3557
|
-
}
|
|
3558
|
-
|
|
3559
|
-
export declare class ɵangular_packages_router_router_n<T> {
|
|
3560
|
-
value: T;
|
|
3561
|
-
children: ɵangular_packages_router_router_n<T>[];
|
|
3562
|
-
constructor(value: T, children: ɵangular_packages_router_router_n<T>[]);
|
|
3563
|
-
toString(): string;
|
|
3564
|
-
}
|
|
3565
|
-
|
|
3566
|
-
export declare class ɵangular_packages_router_router_o implements OnDestroy {
|
|
3567
|
-
private router;
|
|
3568
|
-
/** @docsNotRequired */ readonly viewportScroller: ViewportScroller;
|
|
3569
|
-
private options;
|
|
3570
|
-
private routerEventsSubscription;
|
|
3571
|
-
private scrollEventsSubscription;
|
|
3572
|
-
private lastId;
|
|
3573
|
-
private lastSource;
|
|
3574
|
-
private restoredId;
|
|
3575
|
-
private store;
|
|
3576
|
-
constructor(router: Router,
|
|
3577
|
-
/** @docsNotRequired */ viewportScroller: ViewportScroller, options?: {
|
|
3578
|
-
scrollPositionRestoration?: 'disabled' | 'enabled' | 'top';
|
|
3579
|
-
anchorScrolling?: 'disabled' | 'enabled';
|
|
3580
|
-
});
|
|
3581
|
-
init(): void;
|
|
3582
|
-
private createScrollEvents;
|
|
3583
|
-
private consumeScrollEvents;
|
|
3584
|
-
private scheduleScrollEvent;
|
|
3585
|
-
/** @nodoc */
|
|
3586
|
-
ngOnDestroy(): void;
|
|
3587
|
-
}
|
|
3588
|
-
|
|
3589
3599
|
export declare function ɵassignExtraOptionsToRouter(opts: ExtraOptions, router: Router): void;
|
|
3590
3600
|
|
|
3591
|
-
|
|
3592
3601
|
/**
|
|
3593
3602
|
* This component is used internally within the router to be a placeholder when an empty
|
|
3594
3603
|
* router-outlet is needed. For example, with a config such as:
|
|
@@ -3598,10 +3607,10 @@ export declare function ɵassignExtraOptionsToRouter(opts: ExtraOptions, router:
|
|
|
3598
3607
|
* In order to render, there needs to be a component on this config, which will default
|
|
3599
3608
|
* to this `EmptyOutletComponent`.
|
|
3600
3609
|
*/
|
|
3601
|
-
declare class ɵEmptyOutletComponent {
|
|
3610
|
+
export declare class ɵEmptyOutletComponent {
|
|
3611
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵEmptyOutletComponent, never>;
|
|
3612
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ɵEmptyOutletComponent, "ng-component", never, {}, {}, never, never>;
|
|
3602
3613
|
}
|
|
3603
|
-
export { ɵEmptyOutletComponent }
|
|
3604
|
-
export { ɵEmptyOutletComponent as ɵangular_packages_router_router_l }
|
|
3605
3614
|
|
|
3606
3615
|
/**
|
|
3607
3616
|
* Flattens single-level nested arrays.
|
package/testing/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/router/testing",
|
|
3
|
-
"
|
|
4
|
-
"fesm2015": "../fesm2015/testing.
|
|
5
|
-
"
|
|
3
|
+
"fesm2020": "../fesm2020/testing.mjs",
|
|
4
|
+
"fesm2015": "../fesm2015/testing.mjs",
|
|
5
|
+
"esm2020": "../esm2020/testing/testing.mjs",
|
|
6
6
|
"typings": "./testing.d.ts",
|
|
7
|
-
"module": "../fesm2015/testing.
|
|
8
|
-
"
|
|
7
|
+
"module": "../fesm2015/testing.mjs",
|
|
8
|
+
"es2020": "../fesm2020/testing.mjs"
|
|
9
9
|
}
|
package/testing/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v13.0.0-next.11
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,13 +7,14 @@
|
|
|
7
7
|
import { ChildrenOutletContexts } from '@angular/router';
|
|
8
8
|
import { Compiler } from '@angular/core';
|
|
9
9
|
import { ExtraOptions } from '@angular/router';
|
|
10
|
+
import * as i0 from '@angular/core';
|
|
11
|
+
import * as i1 from '@angular/router';
|
|
10
12
|
import { Injector } from '@angular/core';
|
|
11
13
|
import { Location as Location_2 } from '@angular/common';
|
|
12
14
|
import { ModuleWithProviders } from '@angular/core';
|
|
13
|
-
import { NgModuleFactory } from '@angular/core';
|
|
14
|
-
import { NgModuleFactoryLoader } from '@angular/core';
|
|
15
15
|
import { Route } from '@angular/router';
|
|
16
16
|
import { Router } from '@angular/router';
|
|
17
|
+
import { RouteReuseStrategy } from '@angular/router';
|
|
17
18
|
import { Routes } from '@angular/router';
|
|
18
19
|
import { UrlHandlingStrategy } from '@angular/router';
|
|
19
20
|
import { UrlSerializer } from '@angular/router';
|
|
@@ -24,8 +25,7 @@ import { UrlSerializer } from '@angular/router';
|
|
|
24
25
|
* Sets up the router to be used for testing.
|
|
25
26
|
*
|
|
26
27
|
* The modules sets up the router to be used for testing.
|
|
27
|
-
* It provides spy implementations of `Location
|
|
28
|
-
* NgModuleFactoryLoader}.
|
|
28
|
+
* It provides spy implementations of `Location` and `LocationStrategy`.
|
|
29
29
|
*
|
|
30
30
|
* @usageNotes
|
|
31
31
|
* ### Example
|
|
@@ -46,6 +46,9 @@ import { UrlSerializer } from '@angular/router';
|
|
|
46
46
|
*/
|
|
47
47
|
export declare class RouterTestingModule {
|
|
48
48
|
static withRoutes(routes: Routes, config?: ExtraOptions): ModuleWithProviders<RouterTestingModule>;
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterTestingModule, never>;
|
|
50
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RouterTestingModule, never, never, [typeof i1.RouterModule]>;
|
|
51
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RouterTestingModule>;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
/**
|
|
@@ -53,66 +56,6 @@ export declare class RouterTestingModule {
|
|
|
53
56
|
*
|
|
54
57
|
* @publicApi
|
|
55
58
|
*/
|
|
56
|
-
export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location_2,
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Router setup factory function used for testing.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated As of v5.2. The 2nd-to-last argument should be `ExtraOptions`, not
|
|
62
|
-
* `UrlHandlingStrategy`
|
|
63
|
-
* @publicApi
|
|
64
|
-
*/
|
|
65
|
-
export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location_2, loader: NgModuleFactoryLoader, compiler: Compiler, injector: Injector, routes: Route[][], urlHandlingStrategy?: UrlHandlingStrategy): Router;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* @description
|
|
69
|
-
*
|
|
70
|
-
* Allows to simulate the loading of ng modules in tests.
|
|
71
|
-
*
|
|
72
|
-
* ```
|
|
73
|
-
* const loader = TestBed.inject(NgModuleFactoryLoader);
|
|
74
|
-
*
|
|
75
|
-
* @Component({template: 'lazy-loaded'})
|
|
76
|
-
* class LazyLoadedComponent {}
|
|
77
|
-
* @NgModule({
|
|
78
|
-
* declarations: [LazyLoadedComponent],
|
|
79
|
-
* imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])]
|
|
80
|
-
* })
|
|
81
|
-
*
|
|
82
|
-
* class LoadedModule {}
|
|
83
|
-
*
|
|
84
|
-
* // sets up stubbedModules
|
|
85
|
-
* loader.stubbedModules = {lazyModule: LoadedModule};
|
|
86
|
-
*
|
|
87
|
-
* router.resetConfig([
|
|
88
|
-
* {path: 'lazy', loadChildren: 'lazyModule'},
|
|
89
|
-
* ]);
|
|
90
|
-
*
|
|
91
|
-
* router.navigateByUrl('/lazy/loaded');
|
|
92
|
-
* ```
|
|
93
|
-
*
|
|
94
|
-
* @publicApi
|
|
95
|
-
*/
|
|
96
|
-
export declare class SpyNgModuleFactoryLoader implements NgModuleFactoryLoader {
|
|
97
|
-
private compiler;
|
|
98
|
-
/**
|
|
99
|
-
* @docsNotRequired
|
|
100
|
-
*/
|
|
101
|
-
private _stubbedModules;
|
|
102
|
-
/**
|
|
103
|
-
* @docsNotRequired
|
|
104
|
-
*/
|
|
105
|
-
set stubbedModules(modules: {
|
|
106
|
-
[path: string]: any;
|
|
107
|
-
});
|
|
108
|
-
/**
|
|
109
|
-
* @docsNotRequired
|
|
110
|
-
*/
|
|
111
|
-
get stubbedModules(): {
|
|
112
|
-
[path: string]: any;
|
|
113
|
-
};
|
|
114
|
-
constructor(compiler: Compiler);
|
|
115
|
-
load(path: string): Promise<NgModuleFactory<any>>;
|
|
116
|
-
}
|
|
59
|
+
export declare function setupTestingRouter(urlSerializer: UrlSerializer, contexts: ChildrenOutletContexts, location: Location_2, compiler: Compiler, injector: Injector, routes: Route[][], opts?: ExtraOptions | UrlHandlingStrategy, urlHandlingStrategy?: UrlHandlingStrategy, routeReuseStrategy?: RouteReuseStrategy): Router;
|
|
117
60
|
|
|
118
61
|
export { }
|
package/upgrade/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/router/upgrade",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"
|
|
5
|
-
"fesm2015": "../fesm2015/upgrade.
|
|
6
|
-
"
|
|
4
|
+
"fesm2020": "../fesm2020/upgrade.mjs",
|
|
5
|
+
"fesm2015": "../fesm2015/upgrade.mjs",
|
|
6
|
+
"esm2020": "../esm2020/upgrade/upgrade.mjs",
|
|
7
7
|
"typings": "./upgrade.d.ts",
|
|
8
|
-
"module": "../fesm2015/upgrade.
|
|
9
|
-
"
|
|
8
|
+
"module": "../fesm2015/upgrade.mjs",
|
|
9
|
+
"es2020": "../fesm2020/upgrade.mjs"
|
|
10
10
|
}
|
package/upgrade/upgrade.d.ts
CHANGED