@angular/router 13.3.10 → 13.3.12

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 v13.3.10
2
+ * @license Angular v13.3.12
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -93,9 +93,9 @@ class RouterTestingModule {
93
93
  };
94
94
  }
95
95
  }
96
- RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.10", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
97
- RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.10", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
98
- RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.10", ngImport: i0, type: RouterTestingModule, providers: [
96
+ RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
97
+ RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
98
+ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RouterTestingModule, providers: [
99
99
  ɵROUTER_PROVIDERS,
100
100
  EXTRA_ROUTER_TESTING_PROVIDERS,
101
101
  { provide: Location, useClass: SpyLocation },
@@ -112,7 +112,7 @@ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", ver
112
112
  { provide: PreloadingStrategy, useExisting: NoPreloading },
113
113
  provideRoutes([]),
114
114
  ], imports: [RouterModule] });
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.10", ngImport: i0, type: RouterTestingModule, decorators: [{
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: RouterTestingModule, decorators: [{
116
116
  type: NgModule,
117
117
  args: [{
118
118
  exports: [RouterModule],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.3.10
2
+ * @license Angular v13.3.12
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": "13.3.10",
3
+ "version": "13.3.12",
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": "13.3.10",
28
- "@angular/common": "13.3.10",
29
- "@angular/platform-browser": "13.3.10",
27
+ "@angular/core": "13.3.12",
28
+ "@angular/common": "13.3.12",
29
+ "@angular/platform-browser": "13.3.12",
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 v13.3.10
2
+ * @license Angular v13.3.12
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -801,21 +801,22 @@ export declare interface ExtraOptions {
801
801
  * in the following example.
802
802
  *
803
803
  * ```typescript
804
- * class AppModule {
805
- * constructor(router: Router, viewportScroller: ViewportScroller) {
806
- * router.events.pipe(
807
- * filter((e: Event): e is Scroll => e instanceof Scroll)
804
+ * class AppComponent {
805
+ * movieData: any;
806
+ *
807
+ * constructor(private router: Router, private viewportScroller: ViewportScroller,
808
+ * changeDetectorRef: ChangeDetectorRef) {
809
+ * router.events.pipe(filter((event: Event): event is Scroll => event instanceof Scroll)
808
810
  * ).subscribe(e => {
809
- * if (e.position) {
810
- * // backward navigation
811
- * viewportScroller.scrollToPosition(e.position);
812
- * } else if (e.anchor) {
813
- * // anchor navigation
814
- * viewportScroller.scrollToAnchor(e.anchor);
815
- * } else {
816
- * // forward navigation
817
- * viewportScroller.scrollToPosition([0, 0]);
818
- * }
811
+ * fetch('http://example.com/movies.json').then(response => {
812
+ * this.movieData = response.json();
813
+ * // update the template with the data before restoring scroll
814
+ * changeDetectorRef.detectChanges();
815
+ *
816
+ * if (e.position) {
817
+ * viewportScroller.scrollToPosition(e.position);
818
+ * }
819
+ * });
819
820
  * });
820
821
  * }
821
822
  * }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v13.3.10
2
+ * @license Angular v13.3.12
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 v13.3.10
2
+ * @license Angular v13.3.12
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */