@angular/router 20.0.0-rc.0 → 20.0.0-rc.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 v20.0.0-rc.0
2
+ * @license Angular v20.0.0-rc.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -8,7 +8,6 @@ import * as i0 from '@angular/core';
8
8
  import { Type, ProviderToken, NgModuleFactory, Provider, EnvironmentProviders, EnvironmentInjector, OnDestroy, OnInit, ComponentRef, EventEmitter, SimpleChanges, InjectionToken, Signal, OnChanges, Renderer2, ElementRef, AfterContentInit, QueryList, ChangeDetectorRef, ModuleWithProviders } from '@angular/core';
9
9
  import { Observable } from 'rxjs';
10
10
  import { LocationStrategy } from '@angular/common';
11
- import * as _angular_router from '@angular/router';
12
11
 
13
12
  /**
14
13
  * The primary routing outlet.
@@ -2768,14 +2767,14 @@ declare class RouterOutlet implements OnDestroy, OnInit, RouterOutletContract {
2768
2767
  private location;
2769
2768
  private changeDetector;
2770
2769
  private inputBinder;
2771
- /** @nodoc */
2770
+ /** @docs-private */
2772
2771
  readonly supportsBindingToComponentInputs = true;
2773
- /** @nodoc */
2772
+ /** @docs-private */
2774
2773
  ngOnChanges(changes: SimpleChanges): void;
2775
- /** @nodoc */
2774
+ /** @docs-private */
2776
2775
  ngOnDestroy(): void;
2777
2776
  private isTrackedInParentContexts;
2778
- /** @nodoc */
2777
+ /** @docs-private */
2779
2778
  ngOnInit(): void;
2780
2779
  private initializeOutletWithName;
2781
2780
  get isActivated(): boolean;
@@ -3034,7 +3033,7 @@ declare class Router {
3034
3033
  /**
3035
3034
  * The current state of routing in this NgModule.
3036
3035
  */
3037
- get routerState(): _angular_router.RouterState;
3036
+ get routerState(): RouterState;
3038
3037
  /**
3039
3038
  * True if at least one navigation event has occurred,
3040
3039
  * false otherwise.
@@ -3115,7 +3114,7 @@ declare class Router {
3115
3114
  * ```
3116
3115
  */
3117
3116
  resetConfig(config: Routes): void;
3118
- /** @nodoc */
3117
+ /** @docs-private */
3119
3118
  ngOnDestroy(): void;
3120
3119
  /** Disposes of the router. */
3121
3120
  dispose(): void;
@@ -3363,12 +3362,16 @@ declare class RouterLink implements OnChanges, OnDestroy {
3363
3362
  private readonly renderer;
3364
3363
  private readonly el;
3365
3364
  private locationStrategy?;
3365
+ /** @nodoc */
3366
+ protected readonly reactiveHref: i0.WritableSignal<string | null>;
3366
3367
  /**
3367
3368
  * Represents an `href` attribute value applied to a host element,
3368
3369
  * when a host element is an `<a>`/`<area>` tag or a compatible custom element.
3369
3370
  * For other tags, the value is `null`.
3370
3371
  */
3371
- href: string | null;
3372
+ get href(): string | null;
3373
+ /** @deprecated */
3374
+ set href(value: string | null);
3372
3375
  /**
3373
3376
  * Represents the `target` attribute on a host element.
3374
3377
  * This is only used when the host element is
@@ -3426,7 +3429,9 @@ declare class RouterLink implements OnChanges, OnDestroy {
3426
3429
  private isAnchorElement;
3427
3430
  private subscription?;
3428
3431
  private readonly applicationErrorHandler;
3432
+ private readonly options;
3429
3433
  constructor(router: Router, route: ActivatedRoute, tabIndexAttribute: string | null | undefined, renderer: Renderer2, el: ElementRef, locationStrategy?: LocationStrategy | undefined);
3434
+ private subscribeToNavigationEventsIfNecessary;
3430
3435
  /**
3431
3436
  * Passed to {@link Router#createUrlTree} as part of the
3432
3437
  * `UrlCreationOptions`.
@@ -3453,7 +3458,7 @@ declare class RouterLink implements OnChanges, OnDestroy {
3453
3458
  * instantiation.
3454
3459
  */
3455
3460
  private setTabIndexIfNotOnNativeEl;
3456
- /** @nodoc */
3461
+ /** @docs-private */
3457
3462
  ngOnChanges(changes?: SimpleChanges): void;
3458
3463
  private routerLinkInput;
3459
3464
  /**
@@ -3466,9 +3471,9 @@ declare class RouterLink implements OnChanges, OnDestroy {
3466
3471
  * @see {@link Router#createUrlTree}
3467
3472
  */
3468
3473
  set routerLink(commandsOrUrlTree: readonly any[] | string | UrlTree | null | undefined);
3469
- /** @nodoc */
3474
+ /** @docs-private */
3470
3475
  onClick(button: number, ctrlKey: boolean, shiftKey: boolean, altKey: boolean, metaKey: boolean): boolean;
3471
- /** @nodoc */
3476
+ /** @docs-private */
3472
3477
  ngOnDestroy(): any;
3473
3478
  private updateHref;
3474
3479
  private applyAttributeValue;
@@ -3597,13 +3602,13 @@ declare class RouterLinkActive implements OnChanges, OnDestroy, AfterContentInit
3597
3602
  */
3598
3603
  readonly isActiveChange: EventEmitter<boolean>;
3599
3604
  constructor(router: Router, element: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef, link?: RouterLink | undefined);
3600
- /** @nodoc */
3605
+ /** @docs-private */
3601
3606
  ngAfterContentInit(): void;
3602
3607
  private subscribeToEachLinkOnChanges;
3603
3608
  set routerLinkActive(data: string[] | string);
3604
- /** @nodoc */
3609
+ /** @docs-private */
3605
3610
  ngOnChanges(changes: SimpleChanges): void;
3606
- /** @nodoc */
3611
+ /** @docs-private */
3607
3612
  ngOnDestroy(): void;
3608
3613
  private update;
3609
3614
  private isLinkActive;
@@ -1,17 +1,16 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.0
2
+ * @license Angular v20.0.0-rc.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i0 from '@angular/core';
8
8
  import { ModuleWithProviders, WritableSignal, DebugElement, Type } from '@angular/core';
9
- import { Routes, ExtraOptions, RouterModule } from '../router_module.d-CcYEiCKn.js';
10
- export { ɵEmptyOutletComponent as ɵɵEmptyOutletComponent, RouterLink as ɵɵRouterLink, RouterLinkActive as ɵɵRouterLinkActive, RouterOutlet as ɵɵRouterOutlet } from '../router_module.d-CcYEiCKn.js';
9
+ import { Routes, ExtraOptions, RouterModule } from '../router_module.d-BX1wlLux.js';
10
+ export { ɵEmptyOutletComponent as ɵɵEmptyOutletComponent, RouterLink as ɵɵRouterLink, RouterLinkActive as ɵɵRouterLinkActive, RouterOutlet as ɵɵRouterOutlet } from '../router_module.d-BX1wlLux.js';
11
11
  import { ComponentFixture } from '@angular/core/testing';
12
12
  import 'rxjs';
13
13
  import '@angular/common';
14
- import '@angular/router';
15
14
 
16
15
  /**
17
16
  * @description
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.0
2
+ * @license Angular v20.0.0-rc.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */