@angular/router 21.1.0-next.1 → 21.1.0-next.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 v21.1.0-next.1
2
+ * @license Angular v21.1.0-next.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -166,7 +166,7 @@ class RouterLink {
166
166
  }
167
167
  static ɵfac = i0.ɵɵngDeclareFactory({
168
168
  minVersion: "12.0.0",
169
- version: "21.1.0-next.1",
169
+ version: "21.1.0-next.2",
170
170
  ngImport: i0,
171
171
  type: RouterLink,
172
172
  deps: [{
@@ -187,7 +187,7 @@ class RouterLink {
187
187
  });
188
188
  static ɵdir = i0.ɵɵngDeclareDirective({
189
189
  minVersion: "16.1.0",
190
- version: "21.1.0-next.1",
190
+ version: "21.1.0-next.2",
191
191
  type: RouterLink,
192
192
  isStandalone: true,
193
193
  selector: "[routerLink]",
@@ -219,7 +219,7 @@ class RouterLink {
219
219
  }
220
220
  i0.ɵɵngDeclareClassMetadata({
221
221
  minVersion: "12.0.0",
222
- version: "21.1.0-next.1",
222
+ version: "21.1.0-next.2",
223
223
  ngImport: i0,
224
224
  type: RouterLink,
225
225
  decorators: [{
@@ -395,7 +395,7 @@ class RouterLinkActive {
395
395
  }
396
396
  static ɵfac = i0.ɵɵngDeclareFactory({
397
397
  minVersion: "12.0.0",
398
- version: "21.1.0-next.1",
398
+ version: "21.1.0-next.2",
399
399
  ngImport: i0,
400
400
  type: RouterLinkActive,
401
401
  deps: [{
@@ -411,7 +411,7 @@ class RouterLinkActive {
411
411
  });
412
412
  static ɵdir = i0.ɵɵngDeclareDirective({
413
413
  minVersion: "14.0.0",
414
- version: "21.1.0-next.1",
414
+ version: "21.1.0-next.2",
415
415
  type: RouterLinkActive,
416
416
  isStandalone: true,
417
417
  selector: "[routerLinkActive]",
@@ -435,7 +435,7 @@ class RouterLinkActive {
435
435
  }
436
436
  i0.ɵɵngDeclareClassMetadata({
437
437
  minVersion: "12.0.0",
438
- version: "21.1.0-next.1",
438
+ version: "21.1.0-next.2",
439
439
  ngImport: i0,
440
440
  type: RouterLinkActive,
441
441
  decorators: [{
@@ -486,7 +486,7 @@ class PreloadAllModules {
486
486
  }
487
487
  static ɵfac = i0.ɵɵngDeclareFactory({
488
488
  minVersion: "12.0.0",
489
- version: "21.1.0-next.1",
489
+ version: "21.1.0-next.2",
490
490
  ngImport: i0,
491
491
  type: PreloadAllModules,
492
492
  deps: [],
@@ -494,7 +494,7 @@ class PreloadAllModules {
494
494
  });
495
495
  static ɵprov = i0.ɵɵngDeclareInjectable({
496
496
  minVersion: "12.0.0",
497
- version: "21.1.0-next.1",
497
+ version: "21.1.0-next.2",
498
498
  ngImport: i0,
499
499
  type: PreloadAllModules,
500
500
  providedIn: 'root'
@@ -502,7 +502,7 @@ class PreloadAllModules {
502
502
  }
503
503
  i0.ɵɵngDeclareClassMetadata({
504
504
  minVersion: "12.0.0",
505
- version: "21.1.0-next.1",
505
+ version: "21.1.0-next.2",
506
506
  ngImport: i0,
507
507
  type: PreloadAllModules,
508
508
  decorators: [{
@@ -518,7 +518,7 @@ class NoPreloading {
518
518
  }
519
519
  static ɵfac = i0.ɵɵngDeclareFactory({
520
520
  minVersion: "12.0.0",
521
- version: "21.1.0-next.1",
521
+ version: "21.1.0-next.2",
522
522
  ngImport: i0,
523
523
  type: NoPreloading,
524
524
  deps: [],
@@ -526,7 +526,7 @@ class NoPreloading {
526
526
  });
527
527
  static ɵprov = i0.ɵɵngDeclareInjectable({
528
528
  minVersion: "12.0.0",
529
- version: "21.1.0-next.1",
529
+ version: "21.1.0-next.2",
530
530
  ngImport: i0,
531
531
  type: NoPreloading,
532
532
  providedIn: 'root'
@@ -534,7 +534,7 @@ class NoPreloading {
534
534
  }
535
535
  i0.ɵɵngDeclareClassMetadata({
536
536
  minVersion: "12.0.0",
537
- version: "21.1.0-next.1",
537
+ version: "21.1.0-next.2",
538
538
  ngImport: i0,
539
539
  type: NoPreloading,
540
540
  decorators: [{
@@ -610,7 +610,7 @@ class RouterPreloader {
610
610
  }
611
611
  static ɵfac = i0.ɵɵngDeclareFactory({
612
612
  minVersion: "12.0.0",
613
- version: "21.1.0-next.1",
613
+ version: "21.1.0-next.2",
614
614
  ngImport: i0,
615
615
  type: RouterPreloader,
616
616
  deps: [{
@@ -626,7 +626,7 @@ class RouterPreloader {
626
626
  });
627
627
  static ɵprov = i0.ɵɵngDeclareInjectable({
628
628
  minVersion: "12.0.0",
629
- version: "21.1.0-next.1",
629
+ version: "21.1.0-next.2",
630
630
  ngImport: i0,
631
631
  type: RouterPreloader,
632
632
  providedIn: 'root'
@@ -634,7 +634,7 @@ class RouterPreloader {
634
634
  }
635
635
  i0.ɵɵngDeclareClassMetadata({
636
636
  minVersion: "12.0.0",
637
- version: "21.1.0-next.1",
637
+ version: "21.1.0-next.2",
638
638
  ngImport: i0,
639
639
  type: RouterPreloader,
640
640
  decorators: [{
@@ -736,7 +736,7 @@ class RouterScroller {
736
736
  }
737
737
  static ɵfac = i0.ɵɵngDeclareFactory({
738
738
  minVersion: "12.0.0",
739
- version: "21.1.0-next.1",
739
+ version: "21.1.0-next.2",
740
740
  ngImport: i0,
741
741
  type: RouterScroller,
742
742
  deps: "invalid",
@@ -744,14 +744,14 @@ class RouterScroller {
744
744
  });
745
745
  static ɵprov = i0.ɵɵngDeclareInjectable({
746
746
  minVersion: "12.0.0",
747
- version: "21.1.0-next.1",
747
+ version: "21.1.0-next.2",
748
748
  ngImport: i0,
749
749
  type: RouterScroller
750
750
  });
751
751
  }
752
752
  i0.ɵɵngDeclareClassMetadata({
753
753
  minVersion: "12.0.0",
754
- version: "21.1.0-next.1",
754
+ version: "21.1.0-next.2",
755
755
  ngImport: i0,
756
756
  type: RouterScroller,
757
757
  decorators: [{
@@ -868,6 +868,9 @@ class NavigationStateManager extends StateManager {
868
868
  intercept: true
869
869
  }
870
870
  };
871
+ if (!this.navigation.transition && this.currentNavigation.navigationEvent) {
872
+ transition.extras.replaceUrl = false;
873
+ }
871
874
  const history = this.location.isCurrentPathEqualTo(path) || transition.extras.replaceUrl || transition.extras.skipLocationChange ? 'replace' : 'push';
872
875
  handleResultRejections(this.navigation.navigate(path, {
873
876
  state,
@@ -989,7 +992,7 @@ class NavigationStateManager extends StateManager {
989
992
  }
990
993
  static ɵfac = i0.ɵɵngDeclareFactory({
991
994
  minVersion: "12.0.0",
992
- version: "21.1.0-next.1",
995
+ version: "21.1.0-next.2",
993
996
  ngImport: i0,
994
997
  type: NavigationStateManager,
995
998
  deps: [],
@@ -997,7 +1000,7 @@ class NavigationStateManager extends StateManager {
997
1000
  });
998
1001
  static ɵprov = i0.ɵɵngDeclareInjectable({
999
1002
  minVersion: "12.0.0",
1000
- version: "21.1.0-next.1",
1003
+ version: "21.1.0-next.2",
1001
1004
  ngImport: i0,
1002
1005
  type: NavigationStateManager,
1003
1006
  providedIn: 'root'
@@ -1005,7 +1008,7 @@ class NavigationStateManager extends StateManager {
1005
1008
  }
1006
1009
  i0.ɵɵngDeclareClassMetadata({
1007
1010
  minVersion: "12.0.0",
1008
- version: "21.1.0-next.1",
1011
+ version: "21.1.0-next.2",
1009
1012
  ngImport: i0,
1010
1013
  type: NavigationStateManager,
1011
1014
  decorators: [{
@@ -1298,7 +1301,7 @@ class RouterModule {
1298
1301
  }
1299
1302
  static ɵfac = i0.ɵɵngDeclareFactory({
1300
1303
  minVersion: "12.0.0",
1301
- version: "21.1.0-next.1",
1304
+ version: "21.1.0-next.2",
1302
1305
  ngImport: i0,
1303
1306
  type: RouterModule,
1304
1307
  deps: [],
@@ -1306,7 +1309,7 @@ class RouterModule {
1306
1309
  });
1307
1310
  static ɵmod = i0.ɵɵngDeclareNgModule({
1308
1311
  minVersion: "14.0.0",
1309
- version: "21.1.0-next.1",
1312
+ version: "21.1.0-next.2",
1310
1313
  ngImport: i0,
1311
1314
  type: RouterModule,
1312
1315
  imports: [RouterOutlet, RouterLink, RouterLinkActive, _EmptyOutletComponent],
@@ -1314,14 +1317,14 @@ class RouterModule {
1314
1317
  });
1315
1318
  static ɵinj = i0.ɵɵngDeclareInjector({
1316
1319
  minVersion: "12.0.0",
1317
- version: "21.1.0-next.1",
1320
+ version: "21.1.0-next.2",
1318
1321
  ngImport: i0,
1319
1322
  type: RouterModule
1320
1323
  });
1321
1324
  }
1322
1325
  i0.ɵɵngDeclareClassMetadata({
1323
1326
  minVersion: "12.0.0",
1324
- version: "21.1.0-next.1",
1327
+ version: "21.1.0-next.2",
1325
1328
  ngImport: i0,
1326
1329
  type: RouterModule,
1327
1330
  decorators: [{