@angular/router 18.0.0-next.3 → 18.0.0-next.5
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/esm2022/src/components/empty_outlet.mjs +3 -3
- package/esm2022/src/directives/router_link.mjs +3 -3
- package/esm2022/src/directives/router_link_active.mjs +3 -3
- package/esm2022/src/directives/router_outlet.mjs +7 -10
- package/esm2022/src/events.mjs +2 -2
- package/esm2022/src/models.mjs +24 -2
- package/esm2022/src/navigation_transition.mjs +4 -4
- package/esm2022/src/page_title_strategy.mjs +8 -8
- package/esm2022/src/provide_router.mjs +2 -2
- package/esm2022/src/route_reuse_strategy.mjs +6 -6
- package/esm2022/src/router.mjs +8 -15
- package/esm2022/src/router_config_loader.mjs +3 -3
- package/esm2022/src/router_module.mjs +6 -6
- package/esm2022/src/router_outlet_context.mjs +3 -3
- package/esm2022/src/router_preloader.mjs +9 -9
- package/esm2022/src/router_scroller.mjs +3 -3
- package/esm2022/src/router_state.mjs +3 -3
- package/esm2022/src/statemanager/state_manager.mjs +6 -6
- package/esm2022/src/url_handling_strategy.mjs +6 -6
- package/esm2022/src/url_tree.mjs +3 -3
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/router_testing_harness.mjs +6 -6
- package/esm2022/testing/src/router_testing_module.mjs +4 -4
- package/fesm2022/router.mjs +105 -93
- package/fesm2022/router.mjs.map +1 -1
- package/fesm2022/testing.mjs +12 -12
- package/fesm2022/upgrade.mjs +2 -2
- package/index.d.ts +142 -31
- package/package.json +4 -4
- package/testing/index.d.ts +2 -2
- package/upgrade/index.d.ts +2 -2
package/fesm2022/router.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.0.0-next.
|
|
3
|
-
* (c) 2010-
|
|
2
|
+
* @license Angular v18.0.0-next.5
|
|
3
|
+
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -421,10 +421,10 @@ function mapChildrenIntoArray(segment, fn) {
|
|
|
421
421
|
* @publicApi
|
|
422
422
|
*/
|
|
423
423
|
class UrlSerializer {
|
|
424
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
425
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
424
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: UrlSerializer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
425
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: UrlSerializer, providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }); }
|
|
426
426
|
}
|
|
427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: UrlSerializer, decorators: [{
|
|
428
428
|
type: Injectable,
|
|
429
429
|
args: [{ providedIn: 'root', useFactory: () => new DefaultUrlSerializer() }]
|
|
430
430
|
}] });
|
|
@@ -1256,7 +1256,7 @@ var EventType;
|
|
|
1256
1256
|
* ```
|
|
1257
1257
|
*
|
|
1258
1258
|
* @see {@link Event}
|
|
1259
|
-
* @see [Router events summary](guide/router-reference#router-events)
|
|
1259
|
+
* @see [Router events summary](guide/routing/router-reference#router-events)
|
|
1260
1260
|
* @publicApi
|
|
1261
1261
|
*/
|
|
1262
1262
|
class RouterEvent {
|
|
@@ -1857,10 +1857,10 @@ class ChildrenOutletContexts {
|
|
|
1857
1857
|
getContext(childName) {
|
|
1858
1858
|
return this.contexts.get(childName) || null;
|
|
1859
1859
|
}
|
|
1860
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
1861
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
1860
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: ChildrenOutletContexts, deps: [{ token: i0.EnvironmentInjector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1861
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: ChildrenOutletContexts, providedIn: 'root' }); }
|
|
1862
1862
|
}
|
|
1863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
1863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: ChildrenOutletContexts, decorators: [{
|
|
1864
1864
|
type: Injectable,
|
|
1865
1865
|
args: [{ providedIn: 'root' }]
|
|
1866
1866
|
}], ctorParameters: () => [{ type: i0.EnvironmentInjector }] });
|
|
@@ -1979,7 +1979,7 @@ function nodeChildrenAsMap(node) {
|
|
|
1979
1979
|
* ```
|
|
1980
1980
|
*
|
|
1981
1981
|
* @see {@link ActivatedRoute}
|
|
1982
|
-
* @see [Getting route information](guide/router#getting-route-information)
|
|
1982
|
+
* @see [Getting route information](guide/routing/common-router-tasks#getting-route-information)
|
|
1983
1983
|
*
|
|
1984
1984
|
* @publicApi
|
|
1985
1985
|
*/
|
|
@@ -2030,7 +2030,7 @@ function createEmptyStateSnapshot(rootComponent) {
|
|
|
2030
2030
|
* {@example router/activated-route/module.ts region="activated-route"
|
|
2031
2031
|
* header="activated-route.component.ts"}
|
|
2032
2032
|
*
|
|
2033
|
-
* @see [Getting route information](guide/router#getting-route-information)
|
|
2033
|
+
* @see [Getting route information](guide/routing/common-router-tasks#getting-route-information)
|
|
2034
2034
|
*
|
|
2035
2035
|
* @publicApi
|
|
2036
2036
|
*/
|
|
@@ -2401,8 +2401,6 @@ function hasStaticTitle(config) {
|
|
|
2401
2401
|
* (detach)='onDetach($event)'></router-outlet>
|
|
2402
2402
|
* ```
|
|
2403
2403
|
*
|
|
2404
|
-
* @see [Routing tutorial](guide/router-tutorial-toh#named-outlets "Example of a named
|
|
2405
|
-
* outlet and secondary route configuration").
|
|
2406
2404
|
* @see {@link RouterLink}
|
|
2407
2405
|
* @see {@link Route}
|
|
2408
2406
|
* @ngModule RouterModule
|
|
@@ -2416,7 +2414,6 @@ class RouterOutlet {
|
|
|
2416
2414
|
/**
|
|
2417
2415
|
* The name of the outlet
|
|
2418
2416
|
*
|
|
2419
|
-
* @see [named outlets](guide/router-tutorial-toh#displaying-multiple-routes-in-named-outlets)
|
|
2420
2417
|
*/
|
|
2421
2418
|
this.name = PRIMARY_OUTLET;
|
|
2422
2419
|
this.activateEvents = new EventEmitter();
|
|
@@ -2571,10 +2568,10 @@ class RouterOutlet {
|
|
|
2571
2568
|
this.inputBinder?.bindActivatedRouteToOutletComponent(this);
|
|
2572
2569
|
this.activateEvents.emit(this.activated.instance);
|
|
2573
2570
|
}
|
|
2574
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
2575
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
2571
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterOutlet, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2572
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.5", type: RouterOutlet, isStandalone: true, selector: "router-outlet", inputs: { name: "name" }, outputs: { activateEvents: "activate", deactivateEvents: "deactivate", attachEvents: "attach", detachEvents: "detach" }, exportAs: ["outlet"], usesOnChanges: true, ngImport: i0 }); }
|
|
2576
2573
|
}
|
|
2577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
2574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterOutlet, decorators: [{
|
|
2578
2575
|
type: Directive,
|
|
2579
2576
|
args: [{
|
|
2580
2577
|
selector: 'router-outlet',
|
|
@@ -2686,10 +2683,10 @@ class RoutedComponentInputBinder {
|
|
|
2686
2683
|
});
|
|
2687
2684
|
this.outletDataSubscriptions.set(outlet, dataSubscription);
|
|
2688
2685
|
}
|
|
2689
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
2690
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
2686
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RoutedComponentInputBinder, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2687
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RoutedComponentInputBinder }); }
|
|
2691
2688
|
}
|
|
2692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
2689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RoutedComponentInputBinder, decorators: [{
|
|
2693
2690
|
type: Injectable
|
|
2694
2691
|
}] });
|
|
2695
2692
|
|
|
@@ -2769,10 +2766,10 @@ function isNavigationCancelingError(error) {
|
|
|
2769
2766
|
* to this `EmptyOutletComponent`.
|
|
2770
2767
|
*/
|
|
2771
2768
|
class ɵEmptyOutletComponent {
|
|
2772
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
2773
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
2769
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: ɵEmptyOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2770
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.5", type: ɵEmptyOutletComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `<router-outlet></router-outlet>`, isInline: true, dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
2774
2771
|
}
|
|
2775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
2772
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: ɵEmptyOutletComponent, decorators: [{
|
|
2776
2773
|
type: Component,
|
|
2777
2774
|
args: [{
|
|
2778
2775
|
template: `<router-outlet></router-outlet>`,
|
|
@@ -3345,7 +3342,29 @@ function isEmptyError(e) {
|
|
|
3345
3342
|
* navigation should go to and the optional `navigationBehaviorOptions` can provide more information
|
|
3346
3343
|
* about _how_ to perform the navigation.
|
|
3347
3344
|
*
|
|
3348
|
-
*
|
|
3345
|
+
* ```ts
|
|
3346
|
+
* const route: Route = {
|
|
3347
|
+
* path: "user/:userId",
|
|
3348
|
+
* component: User,
|
|
3349
|
+
* canActivate: [
|
|
3350
|
+
* () => {
|
|
3351
|
+
* const router = inject(Router);
|
|
3352
|
+
* const authService = inject(AuthenticationService);
|
|
3353
|
+
*
|
|
3354
|
+
* if (!authService.isLoggedIn()) {
|
|
3355
|
+
* const loginPath = router.parseUrl("/login");
|
|
3356
|
+
* return new RedirectCommand(loginPath, {
|
|
3357
|
+
* skipLocationChange: "true",
|
|
3358
|
+
* });
|
|
3359
|
+
* }
|
|
3360
|
+
*
|
|
3361
|
+
* return true;
|
|
3362
|
+
* },
|
|
3363
|
+
* ],
|
|
3364
|
+
* };
|
|
3365
|
+
* ```
|
|
3366
|
+
* @see [Routing guide](guide/routing/common-router-tasks#preventing-unauthorized-access)
|
|
3367
|
+
*
|
|
3349
3368
|
* @publicApi
|
|
3350
3369
|
*/
|
|
3351
3370
|
class RedirectCommand {
|
|
@@ -4189,7 +4208,7 @@ function switchTap(next) {
|
|
|
4189
4208
|
* incorporate titles in named outlets.
|
|
4190
4209
|
*
|
|
4191
4210
|
* @publicApi
|
|
4192
|
-
* @see [Page title guide](guide/router#setting-the-page-title)
|
|
4211
|
+
* @see [Page title guide](guide/routing/common-router-tasks#setting-the-page-title)
|
|
4193
4212
|
*/
|
|
4194
4213
|
class TitleStrategy {
|
|
4195
4214
|
/**
|
|
@@ -4211,10 +4230,10 @@ class TitleStrategy {
|
|
|
4211
4230
|
getResolvedTitleForRoute(snapshot) {
|
|
4212
4231
|
return snapshot.data[RouteTitleKey];
|
|
4213
4232
|
}
|
|
4214
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4215
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4233
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: TitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4234
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: TitleStrategy, providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }); }
|
|
4216
4235
|
}
|
|
4217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: TitleStrategy, decorators: [{
|
|
4218
4237
|
type: Injectable,
|
|
4219
4238
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultTitleStrategy) }]
|
|
4220
4239
|
}] });
|
|
@@ -4237,10 +4256,10 @@ class DefaultTitleStrategy extends TitleStrategy {
|
|
|
4237
4256
|
this.title.setTitle(title);
|
|
4238
4257
|
}
|
|
4239
4258
|
}
|
|
4240
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4241
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4259
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultTitleStrategy, deps: [{ token: i1.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4260
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultTitleStrategy, providedIn: 'root' }); }
|
|
4242
4261
|
}
|
|
4243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultTitleStrategy, decorators: [{
|
|
4244
4263
|
type: Injectable,
|
|
4245
4264
|
args: [{ providedIn: 'root' }]
|
|
4246
4265
|
}], ctorParameters: () => [{ type: i1.Title }] });
|
|
@@ -4316,10 +4335,10 @@ class RouterConfigLoader {
|
|
|
4316
4335
|
this.childrenLoaders.set(route, loader);
|
|
4317
4336
|
return loader;
|
|
4318
4337
|
}
|
|
4319
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4320
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4338
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterConfigLoader, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4339
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterConfigLoader, providedIn: 'root' }); }
|
|
4321
4340
|
}
|
|
4322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4341
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterConfigLoader, decorators: [{
|
|
4323
4342
|
type: Injectable,
|
|
4324
4343
|
args: [{ providedIn: 'root' }]
|
|
4325
4344
|
}] });
|
|
@@ -4386,10 +4405,10 @@ function maybeUnwrapDefaultExport(input) {
|
|
|
4386
4405
|
* @publicApi
|
|
4387
4406
|
*/
|
|
4388
4407
|
class UrlHandlingStrategy {
|
|
4389
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4390
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4408
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: UrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4409
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: UrlHandlingStrategy, providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }); }
|
|
4391
4410
|
}
|
|
4392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4411
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: UrlHandlingStrategy, decorators: [{
|
|
4393
4412
|
type: Injectable,
|
|
4394
4413
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultUrlHandlingStrategy) }]
|
|
4395
4414
|
}] });
|
|
@@ -4406,10 +4425,10 @@ class DefaultUrlHandlingStrategy {
|
|
|
4406
4425
|
merge(newUrlPart, wholeUrl) {
|
|
4407
4426
|
return newUrlPart;
|
|
4408
4427
|
}
|
|
4409
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4410
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4428
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultUrlHandlingStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4429
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultUrlHandlingStrategy, providedIn: 'root' }); }
|
|
4411
4430
|
}
|
|
4412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultUrlHandlingStrategy, decorators: [{
|
|
4413
4432
|
type: Injectable,
|
|
4414
4433
|
args: [{ providedIn: 'root' }]
|
|
4415
4434
|
}] });
|
|
@@ -4845,10 +4864,10 @@ class NavigationTransitions {
|
|
|
4845
4864
|
return (extractedBrowserUrl.toString() !== this.currentTransition?.extractedUrl.toString() &&
|
|
4846
4865
|
!this.currentTransition?.extras.skipLocationChange);
|
|
4847
4866
|
}
|
|
4848
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4849
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4867
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: NavigationTransitions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4868
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: NavigationTransitions, providedIn: 'root' }); }
|
|
4850
4869
|
}
|
|
4851
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4870
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: NavigationTransitions, decorators: [{
|
|
4852
4871
|
type: Injectable,
|
|
4853
4872
|
args: [{ providedIn: 'root' }]
|
|
4854
4873
|
}], ctorParameters: () => [] });
|
|
@@ -4864,10 +4883,10 @@ function isBrowserTriggeredNavigation(source) {
|
|
|
4864
4883
|
* @publicApi
|
|
4865
4884
|
*/
|
|
4866
4885
|
class RouteReuseStrategy {
|
|
4867
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4868
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4886
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouteReuseStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4887
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouteReuseStrategy, providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }); }
|
|
4869
4888
|
}
|
|
4870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouteReuseStrategy, decorators: [{
|
|
4871
4890
|
type: Injectable,
|
|
4872
4891
|
args: [{ providedIn: 'root', useFactory: () => inject(DefaultRouteReuseStrategy) }]
|
|
4873
4892
|
}] });
|
|
@@ -4918,19 +4937,19 @@ class BaseRouteReuseStrategy {
|
|
|
4918
4937
|
}
|
|
4919
4938
|
}
|
|
4920
4939
|
class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
|
|
4921
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4922
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4940
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultRouteReuseStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4941
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultRouteReuseStrategy, providedIn: 'root' }); }
|
|
4923
4942
|
}
|
|
4924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: DefaultRouteReuseStrategy, decorators: [{
|
|
4925
4944
|
type: Injectable,
|
|
4926
4945
|
args: [{ providedIn: 'root' }]
|
|
4927
4946
|
}] });
|
|
4928
4947
|
|
|
4929
4948
|
class StateManager {
|
|
4930
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4931
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4949
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: StateManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4950
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: StateManager, providedIn: 'root', useFactory: () => inject(HistoryStateManager) }); }
|
|
4932
4951
|
}
|
|
4933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
4952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: StateManager, decorators: [{
|
|
4934
4953
|
type: Injectable,
|
|
4935
4954
|
args: [{ providedIn: 'root', useFactory: () => inject(HistoryStateManager) }]
|
|
4936
4955
|
}] });
|
|
@@ -5105,10 +5124,10 @@ class HistoryStateManager extends StateManager {
|
|
|
5105
5124
|
}
|
|
5106
5125
|
return { navigationId };
|
|
5107
5126
|
}
|
|
5108
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
5109
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
5127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: HistoryStateManager, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5128
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: HistoryStateManager, providedIn: 'root' }); }
|
|
5110
5129
|
}
|
|
5111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
5130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: HistoryStateManager, decorators: [{
|
|
5112
5131
|
type: Injectable,
|
|
5113
5132
|
args: [{ providedIn: 'root' }]
|
|
5114
5133
|
}] });
|
|
@@ -5177,7 +5196,7 @@ const subsetMatchOptions = {
|
|
|
5177
5196
|
* A service that provides navigation among views and URL manipulation capabilities.
|
|
5178
5197
|
*
|
|
5179
5198
|
* @see {@link Route}
|
|
5180
|
-
* @see [Routing and Navigation Guide](guide/router).
|
|
5199
|
+
* @see [Routing and Navigation Guide](guide/routing/common-router-tasks).
|
|
5181
5200
|
*
|
|
5182
5201
|
* @ngModule RouterModule
|
|
5183
5202
|
*
|
|
@@ -5208,7 +5227,6 @@ class Router {
|
|
|
5208
5227
|
}
|
|
5209
5228
|
constructor() {
|
|
5210
5229
|
this.disposed = false;
|
|
5211
|
-
this.isNgZoneEnabled = false;
|
|
5212
5230
|
this.console = inject(ɵConsole);
|
|
5213
5231
|
this.stateManager = inject(StateManager);
|
|
5214
5232
|
this.options = inject(ROUTER_CONFIGURATION, { optional: true }) || {};
|
|
@@ -5263,7 +5281,6 @@ class Router {
|
|
|
5263
5281
|
*/
|
|
5264
5282
|
this.componentInputBindingEnabled = !!inject(INPUT_BINDER, { optional: true });
|
|
5265
5283
|
this.eventsSubscription = new Subscription();
|
|
5266
|
-
this.isNgZoneEnabled = inject(NgZone) instanceof NgZone && NgZone.isInAngularZone();
|
|
5267
5284
|
this.resetConfig(this.config);
|
|
5268
5285
|
this.navigationTransitions
|
|
5269
5286
|
.setupNavigations(this, this.currentUrlTree, this.routerState)
|
|
@@ -5557,17 +5574,12 @@ class Router {
|
|
|
5557
5574
|
* router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
|
|
5558
5575
|
* ```
|
|
5559
5576
|
*
|
|
5560
|
-
* @see [Routing and Navigation guide](guide/router)
|
|
5577
|
+
* @see [Routing and Navigation guide](guide/routing/common-router-tasks)
|
|
5561
5578
|
*
|
|
5562
5579
|
*/
|
|
5563
5580
|
navigateByUrl(url, extras = {
|
|
5564
5581
|
skipLocationChange: false,
|
|
5565
5582
|
}) {
|
|
5566
|
-
if (typeof ngDevMode === 'undefined' || ngDevMode) {
|
|
5567
|
-
if (this.isNgZoneEnabled && !NgZone.isInAngularZone()) {
|
|
5568
|
-
this.console.warn(`Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`);
|
|
5569
|
-
}
|
|
5570
|
-
}
|
|
5571
5583
|
const urlTree = isUrlTree(url) ? url : this.parseUrl(url);
|
|
5572
5584
|
const mergedTree = this.urlHandlingStrategy.merge(urlTree, this.rawUrlTree);
|
|
5573
5585
|
return this.scheduleNavigation(mergedTree, IMPERATIVE_NAVIGATION, null, extras);
|
|
@@ -5599,7 +5611,7 @@ class Router {
|
|
|
5599
5611
|
* router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});
|
|
5600
5612
|
* ```
|
|
5601
5613
|
*
|
|
5602
|
-
* @see [Routing and Navigation guide](guide/router)
|
|
5614
|
+
* @see [Routing and Navigation guide](guide/routing/common-router-tasks)
|
|
5603
5615
|
*
|
|
5604
5616
|
*/
|
|
5605
5617
|
navigate(commands, extras = { skipLocationChange: false }) {
|
|
@@ -5688,10 +5700,10 @@ class Router {
|
|
|
5688
5700
|
return Promise.reject(e);
|
|
5689
5701
|
});
|
|
5690
5702
|
}
|
|
5691
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
5692
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
5703
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: Router, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5704
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: Router, providedIn: 'root' }); }
|
|
5693
5705
|
}
|
|
5694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
5706
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: Router, decorators: [{
|
|
5695
5707
|
type: Injectable,
|
|
5696
5708
|
args: [{ providedIn: 'root' }]
|
|
5697
5709
|
}], ctorParameters: () => [] });
|
|
@@ -5966,10 +5978,10 @@ class RouterLink {
|
|
|
5966
5978
|
preserveFragment: this.preserveFragment,
|
|
5967
5979
|
});
|
|
5968
5980
|
}
|
|
5969
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
5970
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.0-next.
|
|
5981
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterLink, deps: [{ token: Router }, { token: ActivatedRoute }, { token: 'tabindex', attribute: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i3.LocationStrategy }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5982
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.0.0-next.5", type: RouterLink, isStandalone: true, selector: "[routerLink]", inputs: { target: "target", queryParams: "queryParams", fragment: "fragment", queryParamsHandling: "queryParamsHandling", state: "state", info: "info", relativeTo: "relativeTo", preserveFragment: ["preserveFragment", "preserveFragment", booleanAttribute], skipLocationChange: ["skipLocationChange", "skipLocationChange", booleanAttribute], replaceUrl: ["replaceUrl", "replaceUrl", booleanAttribute], routerLink: "routerLink" }, host: { listeners: { "click": "onClick($event.button,$event.ctrlKey,$event.shiftKey,$event.altKey,$event.metaKey)" }, properties: { "attr.target": "this.target" } }, usesOnChanges: true, ngImport: i0 }); }
|
|
5971
5983
|
}
|
|
5972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
5984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterLink, decorators: [{
|
|
5973
5985
|
type: Directive,
|
|
5974
5986
|
args: [{
|
|
5975
5987
|
selector: '[routerLink]',
|
|
@@ -6207,10 +6219,10 @@ class RouterLinkActive {
|
|
|
6207
6219
|
const isActiveCheckFn = this.isLinkActive(this.router);
|
|
6208
6220
|
return (this.link && isActiveCheckFn(this.link)) || this.links.some(isActiveCheckFn);
|
|
6209
6221
|
}
|
|
6210
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6211
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
6222
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterLinkActive, deps: [{ token: Router }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }, { token: RouterLink, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6223
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0.0-next.5", type: RouterLinkActive, isStandalone: true, selector: "[routerLinkActive]", inputs: { routerLinkActiveOptions: "routerLinkActiveOptions", ariaCurrentWhenActive: "ariaCurrentWhenActive", routerLinkActive: "routerLinkActive" }, outputs: { isActiveChange: "isActiveChange" }, queries: [{ propertyName: "links", predicate: RouterLink, descendants: true }], exportAs: ["routerLinkActive"], usesOnChanges: true, ngImport: i0 }); }
|
|
6212
6224
|
}
|
|
6213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterLinkActive, decorators: [{
|
|
6214
6226
|
type: Directive,
|
|
6215
6227
|
args: [{
|
|
6216
6228
|
selector: '[routerLinkActive]',
|
|
@@ -6262,10 +6274,10 @@ class PreloadAllModules {
|
|
|
6262
6274
|
preload(route, fn) {
|
|
6263
6275
|
return fn().pipe(catchError(() => of(null)));
|
|
6264
6276
|
}
|
|
6265
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6266
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6277
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: PreloadAllModules, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6278
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: PreloadAllModules, providedIn: 'root' }); }
|
|
6267
6279
|
}
|
|
6268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: PreloadAllModules, decorators: [{
|
|
6269
6281
|
type: Injectable,
|
|
6270
6282
|
args: [{ providedIn: 'root' }]
|
|
6271
6283
|
}] });
|
|
@@ -6282,10 +6294,10 @@ class NoPreloading {
|
|
|
6282
6294
|
preload(route, fn) {
|
|
6283
6295
|
return of(null);
|
|
6284
6296
|
}
|
|
6285
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6286
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6297
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: NoPreloading, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6298
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: NoPreloading, providedIn: 'root' }); }
|
|
6287
6299
|
}
|
|
6288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: NoPreloading, decorators: [{
|
|
6289
6301
|
type: Injectable,
|
|
6290
6302
|
args: [{ providedIn: 'root' }]
|
|
6291
6303
|
}] });
|
|
@@ -6376,10 +6388,10 @@ class RouterPreloader {
|
|
|
6376
6388
|
}
|
|
6377
6389
|
});
|
|
6378
6390
|
}
|
|
6379
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6380
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6391
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterPreloader, deps: [{ token: Router }, { token: i0.Compiler }, { token: i0.EnvironmentInjector }, { token: PreloadingStrategy }, { token: RouterConfigLoader }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6392
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterPreloader, providedIn: 'root' }); }
|
|
6381
6393
|
}
|
|
6382
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterPreloader, decorators: [{
|
|
6383
6395
|
type: Injectable,
|
|
6384
6396
|
args: [{ providedIn: 'root' }]
|
|
6385
6397
|
}], ctorParameters: () => [{ type: Router }, { type: i0.Compiler }, { type: i0.EnvironmentInjector }, { type: PreloadingStrategy }, { type: RouterConfigLoader }] });
|
|
@@ -6472,10 +6484,10 @@ class RouterScroller {
|
|
|
6472
6484
|
this.routerEventsSubscription?.unsubscribe();
|
|
6473
6485
|
this.scrollEventsSubscription?.unsubscribe();
|
|
6474
6486
|
}
|
|
6475
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6476
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6487
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterScroller, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6488
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterScroller }); }
|
|
6477
6489
|
}
|
|
6478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
6490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterScroller, decorators: [{
|
|
6479
6491
|
type: Injectable
|
|
6480
6492
|
}], ctorParameters: () => [{ type: UrlSerializer }, { type: NavigationTransitions }, { type: i3.ViewportScroller }, { type: i0.NgZone }, { type: undefined }] });
|
|
6481
6493
|
|
|
@@ -6899,7 +6911,7 @@ function withHashLocation() {
|
|
|
6899
6911
|
/**
|
|
6900
6912
|
* Provides a function which is called when a navigation error occurs.
|
|
6901
6913
|
*
|
|
6902
|
-
* This function is run inside application's [injection context](guide/dependency-injection-context)
|
|
6914
|
+
* This function is run inside application's [injection context](guide/di/dependency-injection-context)
|
|
6903
6915
|
* so you can use the [`inject`](api/core/inject) function.
|
|
6904
6916
|
*
|
|
6905
6917
|
* @usageNotes
|
|
@@ -7042,7 +7054,7 @@ const ROUTER_PROVIDERS = [
|
|
|
7042
7054
|
* * The `forChild()` method creates an `NgModule` that contains all the directives and the given
|
|
7043
7055
|
* routes, but does not include the `Router` service.
|
|
7044
7056
|
*
|
|
7045
|
-
* @see [Routing and Navigation guide](guide/router) for an
|
|
7057
|
+
* @see [Routing and Navigation guide](guide/routing/common-router-tasks) for an
|
|
7046
7058
|
* overview of how the `Router` service should be used.
|
|
7047
7059
|
*
|
|
7048
7060
|
* @publicApi
|
|
@@ -7116,11 +7128,11 @@ class RouterModule {
|
|
|
7116
7128
|
providers: [{ provide: ROUTES, multi: true, useValue: routes }],
|
|
7117
7129
|
};
|
|
7118
7130
|
}
|
|
7119
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
7120
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.
|
|
7121
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
7131
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterModule, deps: [{ token: ROUTER_FORROOT_GUARD, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
7132
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterModule, imports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent], exports: [RouterOutlet, RouterLink, RouterLinkActive, ɵEmptyOutletComponent] }); }
|
|
7133
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterModule }); }
|
|
7122
7134
|
}
|
|
7123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.
|
|
7135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.5", ngImport: i0, type: RouterModule, decorators: [{
|
|
7124
7136
|
type: NgModule,
|
|
7125
7137
|
args: [{
|
|
7126
7138
|
imports: ROUTER_DIRECTIVES,
|
|
@@ -7265,7 +7277,7 @@ function mapToResolve(provider) {
|
|
|
7265
7277
|
/**
|
|
7266
7278
|
* @publicApi
|
|
7267
7279
|
*/
|
|
7268
|
-
const VERSION = new Version('18.0.0-next.
|
|
7280
|
+
const VERSION = new Version('18.0.0-next.5');
|
|
7269
7281
|
|
|
7270
7282
|
/**
|
|
7271
7283
|
* @module
|