@angular/router 14.0.0-next.6 → 14.0.0-next.9

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.0.0-next.6
2
+ * @license Angular v14.0.0-next.9
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.0.0-next.6", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
- RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
- RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterTestingModule, providers: [
104
+ RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
+ RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "14.0.0-next.9", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
+ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-next.9", 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
  { provide: PreloadingStrategy, useExisting: NoPreloading },
129
129
  provideRoutes([]),
130
130
  ], imports: [RouterModule] });
131
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.6", ngImport: i0, type: RouterTestingModule, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-next.9", 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.0.0-next.6
2
+ * @license Angular v14.0.0-next.9
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "14.0.0-next.6",
3
+ "version": "14.0.0-next.9",
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.0.0-next.6",
28
- "@angular/common": "14.0.0-next.6",
29
- "@angular/platform-browser": "14.0.0-next.6",
27
+ "@angular/core": "14.0.0-next.9",
28
+ "@angular/common": "14.0.0-next.9",
29
+ "@angular/platform-browser": "14.0.0-next.9",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
package/router.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.6
2
+ * @license Angular v14.0.0-next.9
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1089,7 +1089,7 @@ export declare interface IsActiveMatchOptions {
1089
1089
  * - `'exact'`: all segments in each `UrlTree` must match.
1090
1090
  * - `'subset'`: a `UrlTree` will be determined to be active if it
1091
1091
  * is a subtree of the active route. That is, the active route may contain extra
1092
- * segments, but must at least have all the segements of the `UrlTree` in question.
1092
+ * segments, but must at least have all the segments of the `UrlTree` in question.
1093
1093
  */
1094
1094
  paths: 'exact' | 'subset';
1095
1095
  /**
@@ -1602,6 +1602,26 @@ export declare type QueryParamsHandling = 'merge' | 'preserve' | '';
1602
1602
  * export class AppModule {}
1603
1603
  * ```
1604
1604
  *
1605
+ * And you can access to your resolved data from `HeroComponent`:
1606
+ *
1607
+ * ```
1608
+ * @Component({
1609
+ * selector: "app-hero",
1610
+ * templateUrl: "hero.component.html",
1611
+ * })
1612
+ * export class HeroComponent {
1613
+ *
1614
+ * constructor(private activatedRoute: ActivatedRoute) {}
1615
+ *
1616
+ * ngOnInit() {
1617
+ * this.activatedRoute.data.subscribe(({ hero }) => {
1618
+ * // do something with your resolved data ...
1619
+ * })
1620
+ * }
1621
+ *
1622
+ * }
1623
+ * ```
1624
+ *
1605
1625
  * @usageNotes
1606
1626
  *
1607
1627
  * When both guard and resolvers are specified, the resolvers are not executed until
@@ -2519,7 +2539,7 @@ export declare class RouterEvent {
2519
2539
  * For example, `['/team', teamId, 'user', userName, {details: true}]`
2520
2540
  * generates a link to `/team/11/user/bob;details=true`.
2521
2541
  *
2522
- * Multiple static segments can be merged into one term and combined with dynamic segements.
2542
+ * Multiple static segments can be merged into one term and combined with dynamic segments.
2523
2543
  * For example, `['/team/11/user', userName, {details: true}]`
2524
2544
  *
2525
2545
  * The input that you provide to the link is treated as a delta to the current URL.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.0.0-next.6
2
+ * @license Angular v14.0.0-next.9
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.0.0-next.6
2
+ * @license Angular v14.0.0-next.9
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */