@angular/router 21.2.0-next.1 → 21.2.0-next.3

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 v21.2.0-next.1
2
+ * @license Angular v21.2.0-next.3
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -171,9 +171,24 @@ const paramCompareMap = {
171
171
  'subset': containsParams,
172
172
  'ignored': () => true
173
173
  };
174
+ const exactMatchOptions = {
175
+ paths: 'exact',
176
+ fragment: 'ignored',
177
+ matrixParams: 'ignored',
178
+ queryParams: 'exact'
179
+ };
180
+ const subsetMatchOptions = {
181
+ paths: 'subset',
182
+ fragment: 'ignored',
183
+ matrixParams: 'ignored',
184
+ queryParams: 'subset'
185
+ };
174
186
  function isActive(url, router, matchOptions) {
175
187
  const urlTree = url instanceof UrlTree ? url : router.parseUrl(url);
176
- return computed(() => containsTree(router.lastSuccessfulNavigation()?.finalUrl ?? new UrlTree(), urlTree, matchOptions));
188
+ return computed(() => containsTree(router.lastSuccessfulNavigation()?.finalUrl ?? new UrlTree(), urlTree, {
189
+ ...subsetMatchOptions,
190
+ ...matchOptions
191
+ }));
177
192
  }
178
193
  function containsTree(container, containee, options) {
179
194
  return pathCompareMap[options.paths](container.root, containee.root, options.matrixParams) && paramCompareMap[options.queryParams](container.queryParams, containee.queryParams) && !(options.fragment === 'exact' && container.fragment !== containee.fragment);
@@ -312,7 +327,7 @@ function mapChildrenIntoArray(segment, fn) {
312
327
  class UrlSerializer {
313
328
  static ɵfac = i0.ɵɵngDeclareFactory({
314
329
  minVersion: "12.0.0",
315
- version: "21.2.0-next.1",
330
+ version: "21.2.0-next.3",
316
331
  ngImport: i0,
317
332
  type: UrlSerializer,
318
333
  deps: [],
@@ -320,7 +335,7 @@ class UrlSerializer {
320
335
  });
321
336
  static ɵprov = i0.ɵɵngDeclareInjectable({
322
337
  minVersion: "12.0.0",
323
- version: "21.2.0-next.1",
338
+ version: "21.2.0-next.3",
324
339
  ngImport: i0,
325
340
  type: UrlSerializer,
326
341
  providedIn: 'root',
@@ -329,7 +344,7 @@ class UrlSerializer {
329
344
  }
330
345
  i0.ɵɵngDeclareClassMetadata({
331
346
  minVersion: "12.0.0",
332
- version: "21.2.0-next.1",
347
+ version: "21.2.0-next.3",
333
348
  ngImport: i0,
334
349
  type: UrlSerializer,
335
350
  decorators: [{
@@ -458,7 +473,10 @@ class UrlParser {
458
473
  parseFragment() {
459
474
  return this.consumeOptional('#') ? decodeURIComponent(this.remaining) : null;
460
475
  }
461
- parseChildren() {
476
+ parseChildren(depth = 0) {
477
+ if (depth > 50) {
478
+ throw new _RuntimeError(4010, (typeof ngDevMode === 'undefined' || ngDevMode) && 'URL is too deep');
479
+ }
462
480
  if (this.remaining === '') {
463
481
  return {};
464
482
  }
@@ -474,11 +492,11 @@ class UrlParser {
474
492
  let children = {};
475
493
  if (this.peekStartsWith('/(')) {
476
494
  this.capture('/');
477
- children = this.parseParens(true);
495
+ children = this.parseParens(true, depth);
478
496
  }
479
497
  let res = {};
480
498
  if (this.peekStartsWith('(')) {
481
- res = this.parseParens(false);
499
+ res = this.parseParens(false, depth);
482
500
  }
483
501
  if (segments.length > 0 || Object.keys(children).length > 0) {
484
502
  res[PRIMARY_OUTLET] = new UrlSegmentGroup(segments, children);
@@ -543,7 +561,7 @@ class UrlParser {
543
561
  params[decodedKey] = decodedVal;
544
562
  }
545
563
  }
546
- parseParens(allowPrimary) {
564
+ parseParens(allowPrimary, depth) {
547
565
  const segments = {};
548
566
  this.capture('(');
549
567
  while (!this.consumeOptional(')') && this.remaining.length > 0) {
@@ -560,7 +578,7 @@ class UrlParser {
560
578
  } else if (allowPrimary) {
561
579
  outletName = PRIMARY_OUTLET;
562
580
  }
563
- const children = this.parseChildren();
581
+ const children = this.parseChildren(depth + 1);
564
582
  segments[outletName ?? PRIMARY_OUTLET] = Object.keys(children).length === 1 && children[PRIMARY_OUTLET] ? children[PRIMARY_OUTLET] : new UrlSegmentGroup([], children);
565
583
  this.consumeOptional('//');
566
584
  }
@@ -1283,7 +1301,7 @@ class ChildrenOutletContexts {
1283
1301
  }
1284
1302
  static ɵfac = i0.ɵɵngDeclareFactory({
1285
1303
  minVersion: "12.0.0",
1286
- version: "21.2.0-next.1",
1304
+ version: "21.2.0-next.3",
1287
1305
  ngImport: i0,
1288
1306
  type: ChildrenOutletContexts,
1289
1307
  deps: [{
@@ -1293,7 +1311,7 @@ class ChildrenOutletContexts {
1293
1311
  });
1294
1312
  static ɵprov = i0.ɵɵngDeclareInjectable({
1295
1313
  minVersion: "12.0.0",
1296
- version: "21.2.0-next.1",
1314
+ version: "21.2.0-next.3",
1297
1315
  ngImport: i0,
1298
1316
  type: ChildrenOutletContexts,
1299
1317
  providedIn: 'root'
@@ -1301,7 +1319,7 @@ class ChildrenOutletContexts {
1301
1319
  }
1302
1320
  i0.ɵɵngDeclareClassMetadata({
1303
1321
  minVersion: "12.0.0",
1304
- version: "21.2.0-next.1",
1322
+ version: "21.2.0-next.3",
1305
1323
  ngImport: i0,
1306
1324
  type: ChildrenOutletContexts,
1307
1325
  decorators: [{
@@ -1758,7 +1776,7 @@ class RouterOutlet {
1758
1776
  }
1759
1777
  static ɵfac = i0.ɵɵngDeclareFactory({
1760
1778
  minVersion: "12.0.0",
1761
- version: "21.2.0-next.1",
1779
+ version: "21.2.0-next.3",
1762
1780
  ngImport: i0,
1763
1781
  type: RouterOutlet,
1764
1782
  deps: [],
@@ -1766,7 +1784,7 @@ class RouterOutlet {
1766
1784
  });
1767
1785
  static ɵdir = i0.ɵɵngDeclareDirective({
1768
1786
  minVersion: "17.1.0",
1769
- version: "21.2.0-next.1",
1787
+ version: "21.2.0-next.3",
1770
1788
  type: RouterOutlet,
1771
1789
  isStandalone: true,
1772
1790
  selector: "router-outlet",
@@ -1799,7 +1817,7 @@ class RouterOutlet {
1799
1817
  }
1800
1818
  i0.ɵɵngDeclareClassMetadata({
1801
1819
  minVersion: "12.0.0",
1802
- version: "21.2.0-next.1",
1820
+ version: "21.2.0-next.3",
1803
1821
  ngImport: i0,
1804
1822
  type: RouterOutlet,
1805
1823
  decorators: [{
@@ -1908,7 +1926,7 @@ class RoutedComponentInputBinder {
1908
1926
  }
1909
1927
  static ɵfac = i0.ɵɵngDeclareFactory({
1910
1928
  minVersion: "12.0.0",
1911
- version: "21.2.0-next.1",
1929
+ version: "21.2.0-next.3",
1912
1930
  ngImport: i0,
1913
1931
  type: RoutedComponentInputBinder,
1914
1932
  deps: [],
@@ -1916,14 +1934,14 @@ class RoutedComponentInputBinder {
1916
1934
  });
1917
1935
  static ɵprov = i0.ɵɵngDeclareInjectable({
1918
1936
  minVersion: "12.0.0",
1919
- version: "21.2.0-next.1",
1937
+ version: "21.2.0-next.3",
1920
1938
  ngImport: i0,
1921
1939
  type: RoutedComponentInputBinder
1922
1940
  });
1923
1941
  }
1924
1942
  i0.ɵɵngDeclareClassMetadata({
1925
1943
  minVersion: "12.0.0",
1926
- version: "21.2.0-next.1",
1944
+ version: "21.2.0-next.3",
1927
1945
  ngImport: i0,
1928
1946
  type: RoutedComponentInputBinder,
1929
1947
  decorators: [{
@@ -1934,7 +1952,7 @@ i0.ɵɵngDeclareClassMetadata({
1934
1952
  class ɵEmptyOutletComponent {
1935
1953
  static ɵfac = i0.ɵɵngDeclareFactory({
1936
1954
  minVersion: "12.0.0",
1937
- version: "21.2.0-next.1",
1955
+ version: "21.2.0-next.3",
1938
1956
  ngImport: i0,
1939
1957
  type: ɵEmptyOutletComponent,
1940
1958
  deps: [],
@@ -1942,7 +1960,7 @@ class ɵEmptyOutletComponent {
1942
1960
  });
1943
1961
  static ɵcmp = i0.ɵɵngDeclareComponent({
1944
1962
  minVersion: "14.0.0",
1945
- version: "21.2.0-next.1",
1963
+ version: "21.2.0-next.3",
1946
1964
  type: ɵEmptyOutletComponent,
1947
1965
  isStandalone: true,
1948
1966
  selector: "ng-component",
@@ -1962,7 +1980,7 @@ class ɵEmptyOutletComponent {
1962
1980
  }
1963
1981
  i0.ɵɵngDeclareClassMetadata({
1964
1982
  minVersion: "12.0.0",
1965
- version: "21.2.0-next.1",
1983
+ version: "21.2.0-next.3",
1966
1984
  ngImport: i0,
1967
1985
  type: ɵEmptyOutletComponent,
1968
1986
  decorators: [{
@@ -3265,7 +3283,7 @@ class TitleStrategy {
3265
3283
  }
3266
3284
  static ɵfac = i0.ɵɵngDeclareFactory({
3267
3285
  minVersion: "12.0.0",
3268
- version: "21.2.0-next.1",
3286
+ version: "21.2.0-next.3",
3269
3287
  ngImport: i0,
3270
3288
  type: TitleStrategy,
3271
3289
  deps: [],
@@ -3273,7 +3291,7 @@ class TitleStrategy {
3273
3291
  });
3274
3292
  static ɵprov = i0.ɵɵngDeclareInjectable({
3275
3293
  minVersion: "12.0.0",
3276
- version: "21.2.0-next.1",
3294
+ version: "21.2.0-next.3",
3277
3295
  ngImport: i0,
3278
3296
  type: TitleStrategy,
3279
3297
  providedIn: 'root',
@@ -3282,7 +3300,7 @@ class TitleStrategy {
3282
3300
  }
3283
3301
  i0.ɵɵngDeclareClassMetadata({
3284
3302
  minVersion: "12.0.0",
3285
- version: "21.2.0-next.1",
3303
+ version: "21.2.0-next.3",
3286
3304
  ngImport: i0,
3287
3305
  type: TitleStrategy,
3288
3306
  decorators: [{
@@ -3307,7 +3325,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3307
3325
  }
3308
3326
  static ɵfac = i0.ɵɵngDeclareFactory({
3309
3327
  minVersion: "12.0.0",
3310
- version: "21.2.0-next.1",
3328
+ version: "21.2.0-next.3",
3311
3329
  ngImport: i0,
3312
3330
  type: DefaultTitleStrategy,
3313
3331
  deps: [{
@@ -3317,7 +3335,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3317
3335
  });
3318
3336
  static ɵprov = i0.ɵɵngDeclareInjectable({
3319
3337
  minVersion: "12.0.0",
3320
- version: "21.2.0-next.1",
3338
+ version: "21.2.0-next.3",
3321
3339
  ngImport: i0,
3322
3340
  type: DefaultTitleStrategy,
3323
3341
  providedIn: 'root'
@@ -3325,7 +3343,7 @@ class DefaultTitleStrategy extends TitleStrategy {
3325
3343
  }
3326
3344
  i0.ɵɵngDeclareClassMetadata({
3327
3345
  minVersion: "12.0.0",
3328
- version: "21.2.0-next.1",
3346
+ version: "21.2.0-next.3",
3329
3347
  ngImport: i0,
3330
3348
  type: DefaultTitleStrategy,
3331
3349
  decorators: [{
@@ -3404,7 +3422,7 @@ class RouterConfigLoader {
3404
3422
  }
3405
3423
  static ɵfac = i0.ɵɵngDeclareFactory({
3406
3424
  minVersion: "12.0.0",
3407
- version: "21.2.0-next.1",
3425
+ version: "21.2.0-next.3",
3408
3426
  ngImport: i0,
3409
3427
  type: RouterConfigLoader,
3410
3428
  deps: [],
@@ -3412,7 +3430,7 @@ class RouterConfigLoader {
3412
3430
  });
3413
3431
  static ɵprov = i0.ɵɵngDeclareInjectable({
3414
3432
  minVersion: "12.0.0",
3415
- version: "21.2.0-next.1",
3433
+ version: "21.2.0-next.3",
3416
3434
  ngImport: i0,
3417
3435
  type: RouterConfigLoader,
3418
3436
  providedIn: 'root'
@@ -3420,7 +3438,7 @@ class RouterConfigLoader {
3420
3438
  }
3421
3439
  i0.ɵɵngDeclareClassMetadata({
3422
3440
  minVersion: "12.0.0",
3423
- version: "21.2.0-next.1",
3441
+ version: "21.2.0-next.3",
3424
3442
  ngImport: i0,
3425
3443
  type: RouterConfigLoader,
3426
3444
  decorators: [{
@@ -3485,7 +3503,7 @@ async function maybeResolveResources(value) {
3485
3503
  class UrlHandlingStrategy {
3486
3504
  static ɵfac = i0.ɵɵngDeclareFactory({
3487
3505
  minVersion: "12.0.0",
3488
- version: "21.2.0-next.1",
3506
+ version: "21.2.0-next.3",
3489
3507
  ngImport: i0,
3490
3508
  type: UrlHandlingStrategy,
3491
3509
  deps: [],
@@ -3493,7 +3511,7 @@ class UrlHandlingStrategy {
3493
3511
  });
3494
3512
  static ɵprov = i0.ɵɵngDeclareInjectable({
3495
3513
  minVersion: "12.0.0",
3496
- version: "21.2.0-next.1",
3514
+ version: "21.2.0-next.3",
3497
3515
  ngImport: i0,
3498
3516
  type: UrlHandlingStrategy,
3499
3517
  providedIn: 'root',
@@ -3502,7 +3520,7 @@ class UrlHandlingStrategy {
3502
3520
  }
3503
3521
  i0.ɵɵngDeclareClassMetadata({
3504
3522
  minVersion: "12.0.0",
3505
- version: "21.2.0-next.1",
3523
+ version: "21.2.0-next.3",
3506
3524
  ngImport: i0,
3507
3525
  type: UrlHandlingStrategy,
3508
3526
  decorators: [{
@@ -3525,7 +3543,7 @@ class DefaultUrlHandlingStrategy {
3525
3543
  }
3526
3544
  static ɵfac = i0.ɵɵngDeclareFactory({
3527
3545
  minVersion: "12.0.0",
3528
- version: "21.2.0-next.1",
3546
+ version: "21.2.0-next.3",
3529
3547
  ngImport: i0,
3530
3548
  type: DefaultUrlHandlingStrategy,
3531
3549
  deps: [],
@@ -3533,7 +3551,7 @@ class DefaultUrlHandlingStrategy {
3533
3551
  });
3534
3552
  static ɵprov = i0.ɵɵngDeclareInjectable({
3535
3553
  minVersion: "12.0.0",
3536
- version: "21.2.0-next.1",
3554
+ version: "21.2.0-next.3",
3537
3555
  ngImport: i0,
3538
3556
  type: DefaultUrlHandlingStrategy,
3539
3557
  providedIn: 'root'
@@ -3541,7 +3559,7 @@ class DefaultUrlHandlingStrategy {
3541
3559
  }
3542
3560
  i0.ɵɵngDeclareClassMetadata({
3543
3561
  minVersion: "12.0.0",
3544
- version: "21.2.0-next.1",
3562
+ version: "21.2.0-next.3",
3545
3563
  ngImport: i0,
3546
3564
  type: DefaultUrlHandlingStrategy,
3547
3565
  decorators: [{
@@ -3940,7 +3958,7 @@ class NavigationTransitions {
3940
3958
  }
3941
3959
  static ɵfac = i0.ɵɵngDeclareFactory({
3942
3960
  minVersion: "12.0.0",
3943
- version: "21.2.0-next.1",
3961
+ version: "21.2.0-next.3",
3944
3962
  ngImport: i0,
3945
3963
  type: NavigationTransitions,
3946
3964
  deps: [],
@@ -3948,7 +3966,7 @@ class NavigationTransitions {
3948
3966
  });
3949
3967
  static ɵprov = i0.ɵɵngDeclareInjectable({
3950
3968
  minVersion: "12.0.0",
3951
- version: "21.2.0-next.1",
3969
+ version: "21.2.0-next.3",
3952
3970
  ngImport: i0,
3953
3971
  type: NavigationTransitions,
3954
3972
  providedIn: 'root'
@@ -3956,7 +3974,7 @@ class NavigationTransitions {
3956
3974
  }
3957
3975
  i0.ɵɵngDeclareClassMetadata({
3958
3976
  minVersion: "12.0.0",
3959
- version: "21.2.0-next.1",
3977
+ version: "21.2.0-next.3",
3960
3978
  ngImport: i0,
3961
3979
  type: NavigationTransitions,
3962
3980
  decorators: [{
@@ -4029,7 +4047,7 @@ function destroyDetachedRouteHandle(handle) {
4029
4047
  class RouteReuseStrategy {
4030
4048
  static ɵfac = i0.ɵɵngDeclareFactory({
4031
4049
  minVersion: "12.0.0",
4032
- version: "21.2.0-next.1",
4050
+ version: "21.2.0-next.3",
4033
4051
  ngImport: i0,
4034
4052
  type: RouteReuseStrategy,
4035
4053
  deps: [],
@@ -4037,7 +4055,7 @@ class RouteReuseStrategy {
4037
4055
  });
4038
4056
  static ɵprov = i0.ɵɵngDeclareInjectable({
4039
4057
  minVersion: "12.0.0",
4040
- version: "21.2.0-next.1",
4058
+ version: "21.2.0-next.3",
4041
4059
  ngImport: i0,
4042
4060
  type: RouteReuseStrategy,
4043
4061
  providedIn: 'root',
@@ -4046,7 +4064,7 @@ class RouteReuseStrategy {
4046
4064
  }
4047
4065
  i0.ɵɵngDeclareClassMetadata({
4048
4066
  minVersion: "12.0.0",
4049
- version: "21.2.0-next.1",
4067
+ version: "21.2.0-next.3",
4050
4068
  ngImport: i0,
4051
4069
  type: RouteReuseStrategy,
4052
4070
  decorators: [{
@@ -4078,7 +4096,7 @@ class BaseRouteReuseStrategy {
4078
4096
  class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4079
4097
  static ɵfac = i0.ɵɵngDeclareFactory({
4080
4098
  minVersion: "12.0.0",
4081
- version: "21.2.0-next.1",
4099
+ version: "21.2.0-next.3",
4082
4100
  ngImport: i0,
4083
4101
  type: DefaultRouteReuseStrategy,
4084
4102
  deps: null,
@@ -4086,7 +4104,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4086
4104
  });
4087
4105
  static ɵprov = i0.ɵɵngDeclareInjectable({
4088
4106
  minVersion: "12.0.0",
4089
- version: "21.2.0-next.1",
4107
+ version: "21.2.0-next.3",
4090
4108
  ngImport: i0,
4091
4109
  type: DefaultRouteReuseStrategy,
4092
4110
  providedIn: 'root'
@@ -4094,7 +4112,7 @@ class DefaultRouteReuseStrategy extends BaseRouteReuseStrategy {
4094
4112
  }
4095
4113
  i0.ɵɵngDeclareClassMetadata({
4096
4114
  minVersion: "12.0.0",
4097
- version: "21.2.0-next.1",
4115
+ version: "21.2.0-next.3",
4098
4116
  ngImport: i0,
4099
4117
  type: DefaultRouteReuseStrategy,
4100
4118
  decorators: [{
@@ -4168,7 +4186,7 @@ class StateManager {
4168
4186
  }
4169
4187
  static ɵfac = i0.ɵɵngDeclareFactory({
4170
4188
  minVersion: "12.0.0",
4171
- version: "21.2.0-next.1",
4189
+ version: "21.2.0-next.3",
4172
4190
  ngImport: i0,
4173
4191
  type: StateManager,
4174
4192
  deps: [],
@@ -4176,7 +4194,7 @@ class StateManager {
4176
4194
  });
4177
4195
  static ɵprov = i0.ɵɵngDeclareInjectable({
4178
4196
  minVersion: "12.0.0",
4179
- version: "21.2.0-next.1",
4197
+ version: "21.2.0-next.3",
4180
4198
  ngImport: i0,
4181
4199
  type: StateManager,
4182
4200
  providedIn: 'root',
@@ -4185,7 +4203,7 @@ class StateManager {
4185
4203
  }
4186
4204
  i0.ɵɵngDeclareClassMetadata({
4187
4205
  minVersion: "12.0.0",
4188
- version: "21.2.0-next.1",
4206
+ version: "21.2.0-next.3",
4189
4207
  ngImport: i0,
4190
4208
  type: StateManager,
4191
4209
  decorators: [{
@@ -4304,7 +4322,7 @@ class HistoryStateManager extends StateManager {
4304
4322
  }
4305
4323
  static ɵfac = i0.ɵɵngDeclareFactory({
4306
4324
  minVersion: "12.0.0",
4307
- version: "21.2.0-next.1",
4325
+ version: "21.2.0-next.3",
4308
4326
  ngImport: i0,
4309
4327
  type: HistoryStateManager,
4310
4328
  deps: null,
@@ -4312,7 +4330,7 @@ class HistoryStateManager extends StateManager {
4312
4330
  });
4313
4331
  static ɵprov = i0.ɵɵngDeclareInjectable({
4314
4332
  minVersion: "12.0.0",
4315
- version: "21.2.0-next.1",
4333
+ version: "21.2.0-next.3",
4316
4334
  ngImport: i0,
4317
4335
  type: HistoryStateManager,
4318
4336
  providedIn: 'root'
@@ -4320,7 +4338,7 @@ class HistoryStateManager extends StateManager {
4320
4338
  }
4321
4339
  i0.ɵɵngDeclareClassMetadata({
4322
4340
  minVersion: "12.0.0",
4323
- version: "21.2.0-next.1",
4341
+ version: "21.2.0-next.3",
4324
4342
  ngImport: i0,
4325
4343
  type: HistoryStateManager,
4326
4344
  decorators: [{
@@ -4343,18 +4361,6 @@ function afterNextNavigation(router, action) {
4343
4361
  });
4344
4362
  }
4345
4363
 
4346
- const exactMatchOptions = {
4347
- paths: 'exact',
4348
- fragment: 'ignored',
4349
- matrixParams: 'ignored',
4350
- queryParams: 'exact'
4351
- };
4352
- const subsetMatchOptions = {
4353
- paths: 'subset',
4354
- fragment: 'ignored',
4355
- matrixParams: 'ignored',
4356
- queryParams: 'subset'
4357
- };
4358
4364
  class Router {
4359
4365
  get currentUrlTree() {
4360
4366
  return this.stateManager.getCurrentUrlTree();
@@ -4578,7 +4584,10 @@ class Router {
4578
4584
  ...subsetMatchOptions
4579
4585
  };
4580
4586
  } else {
4581
- options = matchOptions;
4587
+ options = {
4588
+ ...subsetMatchOptions,
4589
+ ...matchOptions
4590
+ };
4582
4591
  }
4583
4592
  if (isUrlTree(url)) {
4584
4593
  return containsTree(this.currentUrlTree, url, options);
@@ -4628,13 +4637,11 @@ class Router {
4628
4637
  currentSnapshot: this.routerState.snapshot,
4629
4638
  currentRouterState: this.routerState
4630
4639
  });
4631
- return promise.catch(e => {
4632
- return Promise.reject(e);
4633
- });
4640
+ return promise.catch(Promise.reject.bind(Promise));
4634
4641
  }
4635
4642
  static ɵfac = i0.ɵɵngDeclareFactory({
4636
4643
  minVersion: "12.0.0",
4637
- version: "21.2.0-next.1",
4644
+ version: "21.2.0-next.3",
4638
4645
  ngImport: i0,
4639
4646
  type: Router,
4640
4647
  deps: [],
@@ -4642,7 +4649,7 @@ class Router {
4642
4649
  });
4643
4650
  static ɵprov = i0.ɵɵngDeclareInjectable({
4644
4651
  minVersion: "12.0.0",
4645
- version: "21.2.0-next.1",
4652
+ version: "21.2.0-next.3",
4646
4653
  ngImport: i0,
4647
4654
  type: Router,
4648
4655
  providedIn: 'root'
@@ -4650,7 +4657,7 @@ class Router {
4650
4657
  }
4651
4658
  i0.ɵɵngDeclareClassMetadata({
4652
4659
  minVersion: "12.0.0",
4653
- version: "21.2.0-next.1",
4660
+ version: "21.2.0-next.3",
4654
4661
  ngImport: i0,
4655
4662
  type: Router,
4656
4663
  decorators: [{