@angular/router 14.1.0-next.4 → 14.1.0-rc.0

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,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0-next.4
2
+ * @license Angular v14.1.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -101,9 +101,9 @@ class RouterTestingModule {
101
101
  };
102
102
  }
103
103
  }
104
- RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
- RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-next.4", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
- RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: RouterTestingModule, providers: [
104
+ RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
+ RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
+ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RouterTestingModule, providers: [
107
107
  ɵROUTER_PROVIDERS,
108
108
  EXTRA_ROUTER_TESTING_PROVIDERS,
109
109
  { provide: Location, useClass: SpyLocation },
@@ -128,7 +128,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
128
128
  ɵprovidePreloading(NoPreloading),
129
129
  provideRoutes([]),
130
130
  ], imports: [RouterModule] });
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-next.4", ngImport: i0, type: RouterTestingModule, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0-rc.0", ngImport: i0, type: RouterTestingModule, decorators: [{
132
132
  type: NgModule,
133
133
  args: [{
134
134
  exports: [RouterModule],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0-next.4
2
+ * @license Angular v14.1.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0-next.4
2
+ * @license Angular v14.1.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1556,6 +1556,13 @@ export declare class NavigationEnd extends RouterEvent {
1556
1556
  export declare class NavigationError extends RouterEvent {
1557
1557
  /** @docsNotRequired */
1558
1558
  error: any;
1559
+ /**
1560
+ * The target of the navigation when the error occurred.
1561
+ *
1562
+ * Note that this can be `undefined` because an error could have occurred before the
1563
+ * `RouterStateSnapshot` was created for the navigation.
1564
+ */
1565
+ readonly target?: RouterStateSnapshot | undefined;
1559
1566
  readonly type = EventType.NavigationError;
1560
1567
  constructor(
1561
1568
  /** @docsNotRequired */
@@ -1563,7 +1570,14 @@ export declare class NavigationError extends RouterEvent {
1563
1570
  /** @docsNotRequired */
1564
1571
  url: string,
1565
1572
  /** @docsNotRequired */
1566
- error: any);
1573
+ error: any,
1574
+ /**
1575
+ * The target of the navigation when the error occurred.
1576
+ *
1577
+ * Note that this can be `undefined` because an error could have occurred before the
1578
+ * `RouterStateSnapshot` was created for the navigation.
1579
+ */
1580
+ target?: RouterStateSnapshot | undefined);
1567
1581
  /** @docsNotRequired */
1568
1582
  toString(): string;
1569
1583
  }
@@ -3454,7 +3468,7 @@ export declare interface RouterOutletContract {
3454
3468
  /**
3455
3469
  * Called by the `Router` when the outlet should activate (create a component).
3456
3470
  */
3457
- activateWith(activatedRoute: ActivatedRoute, environmnetInjector: EnvironmentInjector | null): void;
3471
+ activateWith(activatedRoute: ActivatedRoute, environmentInjector: EnvironmentInjector | null): void;
3458
3472
  /**
3459
3473
  * Called by the `Router` when the outlet should activate (create a component).
3460
3474
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "14.1.0-next.4",
3
+ "version": "14.1.0-rc.0",
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": "14.1.0-next.4",
28
- "@angular/common": "14.1.0-next.4",
29
- "@angular/platform-browser": "14.1.0-next.4",
27
+ "@angular/core": "14.1.0-rc.0",
28
+ "@angular/common": "14.1.0-rc.0",
29
+ "@angular/platform-browser": "14.1.0-rc.0",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0-next.4
2
+ * @license Angular v14.1.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.1.0-next.4
2
+ * @license Angular v14.1.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */