@angular/router 14.0.0-rc.3 → 14.0.2

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-rc.3
2
+ * @license Angular v14.0.2
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-rc.3", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
- RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-rc.3", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
- RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-rc.3", ngImport: i0, type: RouterTestingModule, providers: [
104
+ RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
105
+ RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
106
+ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", 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-rc.3", ngImport: i0, type: RouterTestingModule, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", 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-rc.3
2
+ * @license Angular v14.0.2
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.0.0-rc.3
2
+ * @license Angular v14.0.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -849,21 +849,22 @@ export declare interface ExtraOptions {
849
849
  * in the following example.
850
850
  *
851
851
  * ```typescript
852
- * class AppModule {
853
- * constructor(router: Router, viewportScroller: ViewportScroller) {
854
- * router.events.pipe(
855
- * filter((e: Event): e is Scroll => e instanceof Scroll)
852
+ * class AppComponent {
853
+ * movieData: any;
854
+ *
855
+ * constructor(private router: Router, private viewportScroller: ViewportScroller,
856
+ * changeDetectorRef: ChangeDetectorRef) {
857
+ * router.events.pipe(filter((event: Event): event is Scroll => event instanceof Scroll)
856
858
  * ).subscribe(e => {
857
- * if (e.position) {
858
- * // backward navigation
859
- * viewportScroller.scrollToPosition(e.position);
860
- * } else if (e.anchor) {
861
- * // anchor navigation
862
- * viewportScroller.scrollToAnchor(e.anchor);
863
- * } else {
864
- * // forward navigation
865
- * viewportScroller.scrollToPosition([0, 0]);
866
- * }
859
+ * fetch('http://example.com/movies.json').then(response => {
860
+ * this.movieData = response.json();
861
+ * // update the template with the data before restoring scroll
862
+ * changeDetectorRef.detectChanges();
863
+ *
864
+ * if (e.position) {
865
+ * viewportScroller.scrollToPosition(e.position);
866
+ * }
867
+ * });
867
868
  * });
868
869
  * }
869
870
  * }
@@ -1584,8 +1585,9 @@ export declare function provideRoutes(routes: Routes): any;
1584
1585
  *
1585
1586
  * How to handle query parameters in a router link.
1586
1587
  * One of:
1587
- * - `merge` : Merge new with current parameters.
1588
- * - `preserve` : Preserve current parameters.
1588
+ * - `"merge"` : Merge new parameters with current parameters.
1589
+ * - `"preserve"` : Preserve current parameters.
1590
+ * - `""` : Replace current parameters with new parameters. This is the default behavior.
1589
1591
  *
1590
1592
  * @see `UrlCreationOptions#queryParamsHandling`
1591
1593
  * @see `RouterLink`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "14.0.0-rc.3",
3
+ "version": "14.0.2",
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-rc.3",
28
- "@angular/common": "14.0.0-rc.3",
29
- "@angular/platform-browser": "14.0.0-rc.3",
27
+ "@angular/core": "14.0.2",
28
+ "@angular/common": "14.0.2",
29
+ "@angular/platform-browser": "14.0.2",
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.0.0-rc.3
2
+ * @license Angular v14.0.2
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-rc.3
2
+ * @license Angular v14.0.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */