@angular/router 18.0.0-next.3 → 18.0.0-next.4

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.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.3
3
- * (c) 2010-2022 Google LLC. https://angular.io/
2
+ * @license Angular v18.0.0-next.4
3
+ * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -59,16 +59,16 @@ class RouterTestingModule {
59
59
  ],
60
60
  };
61
61
  }
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
63
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.3", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
64
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: RouterTestingModule, providers: [
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
63
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.4", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] }); }
64
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: RouterTestingModule, providers: [
65
65
  ɵROUTER_PROVIDERS,
66
66
  provideLocationMocks(),
67
67
  withPreloading(NoPreloading).ɵproviders,
68
68
  { provide: ROUTES, multi: true, useValue: [] },
69
69
  ], imports: [RouterModule] }); }
70
70
  }
71
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: RouterTestingModule, decorators: [{
71
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: RouterTestingModule, decorators: [{
72
72
  type: NgModule,
73
73
  args: [{
74
74
  exports: [RouterModule],
@@ -97,18 +97,18 @@ class RootFixtureService {
97
97
  this.fixture.detectChanges();
98
98
  return this.fixture;
99
99
  }
100
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
101
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
100
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: RootFixtureService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
101
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: RootFixtureService, providedIn: 'root' }); }
102
102
  }
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: RootFixtureService, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: RootFixtureService, decorators: [{
104
104
  type: Injectable,
105
105
  args: [{ providedIn: 'root' }]
106
106
  }] });
107
107
  class RootCmp {
108
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
109
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.3", type: RootCmp, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "outlet", first: true, predicate: RouterOutlet, descendants: true }], 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"] }] }); }
108
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: RootCmp, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
109
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.4", type: RootCmp, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "outlet", first: true, predicate: RouterOutlet, descendants: true }], 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"] }] }); }
110
110
  }
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i0, type: RootCmp, decorators: [{
111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.4", ngImport: i0, type: RootCmp, decorators: [{
112
112
  type: Component,
113
113
  args: [{
114
114
  standalone: true,
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.3
3
- * (c) 2010-2022 Google LLC. https://angular.io/
2
+ * @license Angular v18.0.0-next.4
3
+ * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.3
3
- * (c) 2010-2022 Google LLC. https://angular.io/
2
+ * @license Angular v18.0.0-next.4
3
+ * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -48,7 +48,7 @@ import { Version } from '@angular/core';
48
48
  * {@example router/activated-route/module.ts region="activated-route"
49
49
  * header="activated-route.component.ts"}
50
50
  *
51
- * @see [Getting route information](guide/router#getting-route-information)
51
+ * @see [Getting route information](guide/routing/common-router-tasks#getting-route-information)
52
52
  *
53
53
  * @publicApi
54
54
  */
@@ -942,7 +942,7 @@ export declare type EnabledBlockingInitialNavigationFeature = RouterFeature<Rout
942
942
  *
943
943
  * * [NavigationStart](api/router/NavigationStart): Navigation starts.
944
944
  * * [RouteConfigLoadStart](api/router/RouteConfigLoadStart): Before
945
- * the router [lazy loads](/guide/router#lazy-loading) a route configuration.
945
+ * the router [lazy loads](guide/routing/common-router-tasks#lazy-loading) a route configuration.
946
946
  * * [RouteConfigLoadEnd](api/router/RouteConfigLoadEnd): After a route has been lazy loaded.
947
947
  * * [RoutesRecognized](api/router/RoutesRecognized): When the router parses the URL
948
948
  * and the routes are recognized.
@@ -1073,7 +1073,7 @@ export declare interface ExtraOptions extends InMemoryScrollingOptions, RouterCo
1073
1073
  /**
1074
1074
  * The supported types that can be returned from a `Router` guard.
1075
1075
  *
1076
- * @see [Routing tutorial](guide/router-tutorial-toh#milestone-5-route-guards)
1076
+ * @see [Routing guide](guide/routing/common-router-tasks#preventing-unauthorized-access)
1077
1077
  * @publicApi
1078
1078
  */
1079
1079
  export declare type GuardResult = boolean | UrlTree | RedirectCommand;
@@ -1503,7 +1503,7 @@ export declare interface Navigation {
1503
1503
  *
1504
1504
  * @see {@link Router#navigate}
1505
1505
  * @see {@link Router#navigateByUrl}
1506
- * @see [Routing and Navigation guide](guide/router)
1506
+ * @see [Routing and Navigation guide](guide/routing/common-router-tasks)
1507
1507
  *
1508
1508
  * @publicApi
1509
1509
  */
@@ -1732,7 +1732,7 @@ export declare type NavigationErrorHandlerFeature = RouterFeature<RouterFeatureK
1732
1732
  * @see {@link Router#navigate}
1733
1733
  * @see {@link Router#navigateByUrl}
1734
1734
  * @see {@link Router#createurltree}
1735
- * @see [Routing and Navigation guide](guide/router)
1735
+ * @see [Routing and Navigation guide](guide/routing/common-router-tasks)
1736
1736
  * @see {@link UrlCreationOptions}
1737
1737
  * @see {@link NavigationBehaviorOptions}
1738
1738
  *
@@ -2090,7 +2090,7 @@ export declare type QueryParamsHandling = 'merge' | 'preserve' | '';
2090
2090
  * navigation should go to and the optional `navigationBehaviorOptions` can provide more information
2091
2091
  * about _how_ to perform the navigation.
2092
2092
  *
2093
- * @see [Routing tutorial](guide/router-tutorial-toh#milestone-5-route-guards)
2093
+ * @see [Routing guide](guide/routing/common-router-tasks#preventing-unauthorized-access)
2094
2094
  * @publicApi
2095
2095
  */
2096
2096
  export declare class RedirectCommand {
@@ -2338,7 +2338,7 @@ export declare class ResolveStart extends RouterEvent {
2338
2338
  * Supports static, parameterized, redirect, and wildcard routes, as well as
2339
2339
  * custom route data and resolve methods.
2340
2340
  *
2341
- * For detailed usage information, see the [Routing Guide](guide/router).
2341
+ * For detailed usage information, see the [Routing Guide](guide/routing/common-router-tasks).
2342
2342
  *
2343
2343
  * @usageNotes
2344
2344
  *
@@ -2776,7 +2776,7 @@ declare class RoutedComponentInputBinder {
2776
2776
  * A service that provides navigation among views and URL manipulation capabilities.
2777
2777
  *
2778
2778
  * @see {@link Route}
2779
- * @see [Routing and Navigation Guide](guide/router).
2779
+ * @see [Routing and Navigation Guide](guide/routing/common-router-tasks).
2780
2780
  *
2781
2781
  * @ngModule RouterModule
2782
2782
  *
@@ -2973,7 +2973,7 @@ export declare class Router {
2973
2973
  * router.navigateByUrl("/team/33/user/11", { skipLocationChange: true });
2974
2974
  * ```
2975
2975
  *
2976
- * @see [Routing and Navigation guide](guide/router)
2976
+ * @see [Routing and Navigation guide](guide/routing/common-router-tasks)
2977
2977
  *
2978
2978
  */
2979
2979
  navigateByUrl(url: string | UrlTree, extras?: NavigationBehaviorOptions): Promise<boolean>;
@@ -3004,7 +3004,7 @@ export declare class Router {
3004
3004
  * router.navigate(['team', 33, 'user', 11], {relativeTo: route, skipLocationChange: true});
3005
3005
  * ```
3006
3006
  *
3007
- * @see [Routing and Navigation guide](guide/router)
3007
+ * @see [Routing and Navigation guide](guide/routing/common-router-tasks)
3008
3008
  *
3009
3009
  */
3010
3010
  navigate(commands: any[], extras?: NavigationExtras): Promise<boolean>;
@@ -3190,7 +3190,7 @@ export declare abstract class RouteReuseStrategy {
3190
3190
  * ```
3191
3191
  *
3192
3192
  * @see {@link Event}
3193
- * @see [Router events summary](guide/router-reference#router-events)
3193
+ * @see [Router events summary](guide/routing/router-reference#router-events)
3194
3194
  * @publicApi
3195
3195
  */
3196
3196
  export declare class RouterEvent {
@@ -3619,7 +3619,7 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
3619
3619
  * * The `forChild()` method creates an `NgModule` that contains all the directives and the given
3620
3620
  * routes, but does not include the `Router` service.
3621
3621
  *
3622
- * @see [Routing and Navigation guide](guide/router) for an
3622
+ * @see [Routing and Navigation guide](guide/routing/common-router-tasks) for an
3623
3623
  * overview of how the `Router` service should be used.
3624
3624
  *
3625
3625
  * @publicApi
@@ -3710,8 +3710,6 @@ export declare class RouterModule {
3710
3710
  * (detach)='onDetach($event)'></router-outlet>
3711
3711
  * ```
3712
3712
  *
3713
- * @see [Routing tutorial](guide/router-tutorial-toh#named-outlets "Example of a named
3714
- * outlet and secondary route configuration").
3715
3713
  * @see {@link RouterLink}
3716
3714
  * @see {@link Route}
3717
3715
  * @ngModule RouterModule
@@ -3724,7 +3722,6 @@ export declare class RouterOutlet implements OnDestroy, OnInit, RouterOutletCont
3724
3722
  /**
3725
3723
  * The name of the outlet
3726
3724
  *
3727
- * @see [named outlets](guide/router-tutorial-toh#displaying-multiple-routes-in-named-outlets)
3728
3725
  */
3729
3726
  name: string;
3730
3727
  activateEvents: EventEmitter<any>;
@@ -3912,7 +3909,7 @@ export declare class RouterPreloader implements OnDestroy {
3912
3909
  * ```
3913
3910
  *
3914
3911
  * @see {@link ActivatedRoute}
3915
- * @see [Getting route information](guide/router#getting-route-information)
3912
+ * @see [Getting route information](guide/routing/common-router-tasks#getting-route-information)
3916
3913
  *
3917
3914
  * @publicApi
3918
3915
  */
@@ -3974,7 +3971,7 @@ export declare const ROUTES: InjectionToken<Route[][]>;
3974
3971
  *
3975
3972
  * @see {@link Route}
3976
3973
  * @see {@link Router}
3977
- * @see [Router configuration guide](guide/router-reference#configuration)
3974
+ * @see [Router configuration guide](guide/routing/router-reference#configuration)
3978
3975
  * @publicApi
3979
3976
  */
3980
3977
  export declare type Routes = Route[];
@@ -4067,7 +4064,7 @@ export declare class Scroll {
4067
4064
  * incorporate titles in named outlets.
4068
4065
  *
4069
4066
  * @publicApi
4070
- * @see [Page title guide](guide/router#setting-the-page-title)
4067
+ * @see [Page title guide](guide/routing/common-router-tasks#setting-the-page-title)
4071
4068
  */
4072
4069
  export declare abstract class TitleStrategy {
4073
4070
  /** Performs the application title update. */
@@ -4107,7 +4104,7 @@ declare class TreeNode<T> {
4107
4104
  *
4108
4105
  * @see {@link Router#navigate}
4109
4106
  * @see {@link Router#createUrlTree}
4110
- * @see [Routing and Navigation guide](guide/router)
4107
+ * @see [Routing and Navigation guide](guide/routing/common-router-tasks)
4111
4108
  *
4112
4109
  * @publicApi
4113
4110
  */
@@ -4655,7 +4652,7 @@ export declare function withInMemoryScrolling(options?: InMemoryScrollingOptions
4655
4652
  /**
4656
4653
  * Provides a function which is called when a navigation error occurs.
4657
4654
  *
4658
- * This function is run inside application's [injection context](guide/dependency-injection-context)
4655
+ * This function is run inside application's [injection context](guide/di/dependency-injection-context)
4659
4656
  * so you can use the [`inject`](api/core/inject) function.
4660
4657
  *
4661
4658
  * @usageNotes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "18.0.0-next.3",
3
+ "version": "18.0.0-next.4",
4
4
  "description": "Angular - the routing library",
5
5
  "keywords": [
6
6
  "angular",
@@ -24,9 +24,9 @@
24
24
  "tslib": "^2.3.0"
25
25
  },
26
26
  "peerDependencies": {
27
- "@angular/core": "18.0.0-next.3",
28
- "@angular/common": "18.0.0-next.3",
29
- "@angular/platform-browser": "18.0.0-next.3",
27
+ "@angular/core": "18.0.0-next.4",
28
+ "@angular/common": "18.0.0-next.4",
29
+ "@angular/platform-browser": "18.0.0-next.4",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.3
3
- * (c) 2010-2022 Google LLC. https://angular.io/
2
+ * @license Angular v18.0.0-next.4
3
+ * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v18.0.0-next.3
3
- * (c) 2010-2022 Google LLC. https://angular.io/
2
+ * @license Angular v18.0.0-next.4
3
+ * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6