@angular/router 21.1.1 → 21.2.0-next.0

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.1
2
+ * @license Angular v21.2.0-next.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -28,7 +28,7 @@ function mapToResolve(provider) {
28
28
  return (...params) => inject(provider).resolve(...params);
29
29
  }
30
30
 
31
- const VERSION = /* @__PURE__ */new Version('21.1.1');
31
+ const VERSION = /* @__PURE__ */new Version('21.2.0-next.0');
32
32
 
33
33
  export { VERSION, mapToCanActivate, mapToCanActivateChild, mapToCanDeactivate, mapToCanMatch, mapToResolve };
34
34
  //# sourceMappingURL=router.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"router.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/router/src/utils/functional_guards.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/router/src/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {inject, Type} from '@angular/core';\n\nimport {\n CanActivate,\n CanActivateChild,\n CanActivateChildFn,\n CanActivateFn,\n CanDeactivate,\n CanDeactivateFn,\n CanMatch,\n CanMatchFn,\n Resolve,\n ResolveFn,\n} from '../models';\n\n/**\n * Maps an array of injectable classes with canMatch functions to an array of equivalent\n * `CanMatchFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanMatch(providers: Array<Type<CanMatch>>): CanMatchFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canMatch(...params),\n );\n}\n\n/**\n * Maps an array of injectable classes with canActivate functions to an array of equivalent\n * `CanActivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanActivate(providers: Array<Type<CanActivate>>): CanActivateFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canActivate(...params),\n );\n}\n/**\n * Maps an array of injectable classes with canActivateChild functions to an array of equivalent\n * `CanActivateChildFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanActivateChild(\n providers: Array<Type<CanActivateChild>>,\n): CanActivateChildFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canActivateChild(...params),\n );\n}\n/**\n * Maps an array of injectable classes with canDeactivate functions to an array of equivalent\n * `CanDeactivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanDeactivate<T = unknown>(\n providers: Array<Type<CanDeactivate<T>>>,\n): CanDeactivateFn<T>[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canDeactivate(...params),\n );\n}\n/**\n * Maps an injectable class with a resolve function to an equivalent `ResolveFn`\n * for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='Resolve'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToResolve<T>(provider: Type<Resolve<T>>): ResolveFn<T> {\n return (...params) => inject(provider).resolve(...params);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the router package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = /* @__PURE__ */ new Version('21.1.1');\n"],"names":["mapToCanMatch","providers","map","provider","params","inject","canMatch","mapToCanActivate","canActivate","mapToCanActivateChild","canActivateChild","mapToCanDeactivate","canDeactivate","mapToResolve","resolve","VERSION","Version"],"mappings":";;;;;;;;;;;;;;AAgCM,SAAUA,aAAaA,CAACC,SAAgC,EAAA;EAC5D,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACG,QAAQ,CAAC,GAAGF,MAAM,CAAC,CACzC;AACH;AAWM,SAAUG,gBAAgBA,CAACN,SAAmC,EAAA;EAClE,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACK,WAAW,CAAC,GAAGJ,MAAM,CAAC,CAC5C;AACH;AAUM,SAAUK,qBAAqBA,CACnCR,SAAwC,EAAA;EAExC,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACO,gBAAgB,CAAC,GAAGN,MAAM,CAAC,CACjD;AACH;AAUM,SAAUO,kBAAkBA,CAChCV,SAAwC,EAAA;EAExC,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACS,aAAa,CAAC,GAAGR,MAAM,CAAC,CAC9C;AACH;AAUM,SAAUS,YAAYA,CAAIV,QAA0B,EAAA;AACxD,EAAA,OAAO,CAAC,GAAGC,MAAM,KAAKC,MAAM,CAACF,QAAQ,CAAC,CAACW,OAAO,CAAC,GAAGV,MAAM,CAAC;AAC3D;;ACpFO,MAAMW,OAAO,kBAAmB,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
1
+ {"version":3,"file":"router.mjs","sources":["../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/router/src/utils/functional_guards.ts","../../../../../k8-fastbuild-ST-fdfa778d11ba/bin/packages/router/src/version.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {inject, Type} from '@angular/core';\n\nimport {\n CanActivate,\n CanActivateChild,\n CanActivateChildFn,\n CanActivateFn,\n CanDeactivate,\n CanDeactivateFn,\n CanMatch,\n CanMatchFn,\n Resolve,\n ResolveFn,\n} from '../models';\n\n/**\n * Maps an array of injectable classes with canMatch functions to an array of equivalent\n * `CanMatchFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanMatch(providers: Array<Type<CanMatch>>): CanMatchFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canMatch(...params),\n );\n}\n\n/**\n * Maps an array of injectable classes with canActivate functions to an array of equivalent\n * `CanActivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanActivate(providers: Array<Type<CanActivate>>): CanActivateFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canActivate(...params),\n );\n}\n/**\n * Maps an array of injectable classes with canActivateChild functions to an array of equivalent\n * `CanActivateChildFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanActivateChild(\n providers: Array<Type<CanActivateChild>>,\n): CanActivateChildFn[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canActivateChild(...params),\n );\n}\n/**\n * Maps an array of injectable classes with canDeactivate functions to an array of equivalent\n * `CanDeactivateFn` for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='CanActivate'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToCanDeactivate<T = unknown>(\n providers: Array<Type<CanDeactivate<T>>>,\n): CanDeactivateFn<T>[] {\n return providers.map(\n (provider) =>\n (...params) =>\n inject(provider).canDeactivate(...params),\n );\n}\n/**\n * Maps an injectable class with a resolve function to an equivalent `ResolveFn`\n * for use in a `Route` definition.\n *\n * Usage {@example router/utils/functional_guards.ts region='Resolve'}\n *\n * @publicApi\n * @see {@link Route}\n */\nexport function mapToResolve<T>(provider: Type<Resolve<T>>): ResolveFn<T> {\n return (...params) => inject(provider).resolve(...params);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the router package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = /* @__PURE__ */ new Version('21.2.0-next.0');\n"],"names":["mapToCanMatch","providers","map","provider","params","inject","canMatch","mapToCanActivate","canActivate","mapToCanActivateChild","canActivateChild","mapToCanDeactivate","canDeactivate","mapToResolve","resolve","VERSION","Version"],"mappings":";;;;;;;;;;;;;;AAgCM,SAAUA,aAAaA,CAACC,SAAgC,EAAA;EAC5D,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACG,QAAQ,CAAC,GAAGF,MAAM,CAAC,CACzC;AACH;AAWM,SAAUG,gBAAgBA,CAACN,SAAmC,EAAA;EAClE,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACK,WAAW,CAAC,GAAGJ,MAAM,CAAC,CAC5C;AACH;AAUM,SAAUK,qBAAqBA,CACnCR,SAAwC,EAAA;EAExC,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACO,gBAAgB,CAAC,GAAGN,MAAM,CAAC,CACjD;AACH;AAUM,SAAUO,kBAAkBA,CAChCV,SAAwC,EAAA;EAExC,OAAOA,SAAS,CAACC,GAAG,CACjBC,QAAQ,IACP,CAAC,GAAGC,MAAM,KACRC,MAAM,CAACF,QAAQ,CAAC,CAACS,aAAa,CAAC,GAAGR,MAAM,CAAC,CAC9C;AACH;AAUM,SAAUS,YAAYA,CAAIV,QAA0B,EAAA;AACxD,EAAA,OAAO,CAAC,GAAGC,MAAM,KAAKC,MAAM,CAACF,QAAQ,CAAC,CAACW,OAAO,CAAC,GAAGV,MAAM,CAAC;AAC3D;;ACpFO,MAAMW,OAAO,kBAAmB,IAAIC,OAAO,CAAC,mBAAmB;;;;"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.1
2
+ * @license Angular v21.2.0-next.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -33,7 +33,7 @@ class RouterTestingModule {
33
33
  }
34
34
  static ɵfac = i0.ɵɵngDeclareFactory({
35
35
  minVersion: "12.0.0",
36
- version: "21.1.1",
36
+ version: "21.2.0-next.0",
37
37
  ngImport: i0,
38
38
  type: RouterTestingModule,
39
39
  deps: [],
@@ -41,14 +41,14 @@ class RouterTestingModule {
41
41
  });
42
42
  static ɵmod = i0.ɵɵngDeclareNgModule({
43
43
  minVersion: "14.0.0",
44
- version: "21.1.1",
44
+ version: "21.2.0-next.0",
45
45
  ngImport: i0,
46
46
  type: RouterTestingModule,
47
47
  exports: [RouterModule]
48
48
  });
49
49
  static ɵinj = i0.ɵɵngDeclareInjector({
50
50
  minVersion: "12.0.0",
51
- version: "21.1.1",
51
+ version: "21.2.0-next.0",
52
52
  ngImport: i0,
53
53
  type: RouterTestingModule,
54
54
  providers: [ROUTER_PROVIDERS, provideLocationMocks(), withPreloading(NoPreloading).ɵproviders, {
@@ -61,7 +61,7 @@ class RouterTestingModule {
61
61
  }
62
62
  i0.ɵɵngDeclareClassMetadata({
63
63
  minVersion: "12.0.0",
64
- version: "21.1.1",
64
+ version: "21.2.0-next.0",
65
65
  ngImport: i0,
66
66
  type: RouterTestingModule,
67
67
  decorators: [{
@@ -97,7 +97,7 @@ class RootFixtureService {
97
97
  }
98
98
  static ɵfac = i0.ɵɵngDeclareFactory({
99
99
  minVersion: "12.0.0",
100
- version: "21.1.1",
100
+ version: "21.2.0-next.0",
101
101
  ngImport: i0,
102
102
  type: RootFixtureService,
103
103
  deps: [],
@@ -105,7 +105,7 @@ class RootFixtureService {
105
105
  });
106
106
  static ɵprov = i0.ɵɵngDeclareInjectable({
107
107
  minVersion: "12.0.0",
108
- version: "21.1.1",
108
+ version: "21.2.0-next.0",
109
109
  ngImport: i0,
110
110
  type: RootFixtureService,
111
111
  providedIn: 'root'
@@ -113,7 +113,7 @@ class RootFixtureService {
113
113
  }
114
114
  i0.ɵɵngDeclareClassMetadata({
115
115
  minVersion: "12.0.0",
116
- version: "21.1.1",
116
+ version: "21.2.0-next.0",
117
117
  ngImport: i0,
118
118
  type: RootFixtureService,
119
119
  decorators: [{
@@ -130,7 +130,7 @@ class RootCmp {
130
130
  }] : []));
131
131
  static ɵfac = i0.ɵɵngDeclareFactory({
132
132
  minVersion: "12.0.0",
133
- version: "21.1.1",
133
+ version: "21.2.0-next.0",
134
134
  ngImport: i0,
135
135
  type: RootCmp,
136
136
  deps: [],
@@ -138,7 +138,7 @@ class RootCmp {
138
138
  });
139
139
  static ɵcmp = i0.ɵɵngDeclareComponent({
140
140
  minVersion: "14.0.0",
141
- version: "21.1.1",
141
+ version: "21.2.0-next.0",
142
142
  type: RootCmp,
143
143
  isStandalone: true,
144
144
  selector: "ng-component",
@@ -163,7 +163,7 @@ class RootCmp {
163
163
  }
164
164
  i0.ɵɵngDeclareClassMetadata({
165
165
  minVersion: "12.0.0",
166
- version: "21.1.1",
166
+ version: "21.2.0-next.0",
167
167
  ngImport: i0,
168
168
  type: RootCmp,
169
169
  decorators: [{
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.1
2
+ * @license Angular v21.2.0-next.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "21.1.1",
3
+ "version": "21.2.0-next.0",
4
4
  "description": "Angular - the routing library",
5
5
  "keywords": [
6
6
  "angular",
@@ -27,9 +27,9 @@
27
27
  "@types/dom-navigation": "^1.0.5"
28
28
  },
29
29
  "peerDependencies": {
30
- "@angular/core": "21.1.1",
31
- "@angular/common": "21.1.1",
32
- "@angular/platform-browser": "21.1.1",
30
+ "@angular/core": "21.2.0-next.0",
31
+ "@angular/common": "21.2.0-next.0",
32
+ "@angular/platform-browser": "21.2.0-next.0",
33
33
  "rxjs": "^6.5.3 || ^7.4.0"
34
34
  },
35
35
  "ng-update": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.1
2
+ * @license Angular v21.2.0-next.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -3364,8 +3364,8 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
3364
3364
  * @description
3365
3365
  *
3366
3366
  * When applied to an element in a template, makes that element a link
3367
- * that initiates navigation to a route. Navigation opens one or more routed components
3368
- * in one or more `<router-outlet>` locations on the page.
3367
+ * that initiates navigation to a route. Navigation opens one or more routed
3368
+ * components in one or more `<router-outlet>` locations on the page.
3369
3369
  *
3370
3370
  * Given a route configuration `[{ path: 'user/:name', component: UserCmp }]`,
3371
3371
  * the following creates a static link to the route:
@@ -3377,12 +3377,12 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
3377
3377
  * For example, `['/team', teamId, 'user', userName, {details: true}]`
3378
3378
  * generates a link to `/team/11/user/bob;details=true`.
3379
3379
  *
3380
- * Multiple static segments can be merged into one term and combined with dynamic segments.
3381
- * For example, `['/team/11/user', userName, {details: true}]`
3380
+ * Multiple static segments can be merged into one term and combined with
3381
+ * dynamic segments. For example, `['/team/11/user', userName, {details: true}]`
3382
3382
  *
3383
- * The input that you provide to the link is treated as a delta to the current URL.
3384
- * For instance, suppose the current URL is `/user/(box//aux:team)`.
3385
- * The link `<a [routerLink]="['/user/jim']">Jim</a>` creates the URL
3383
+ * The input that you provide to the link is treated as a delta to the current
3384
+ * URL. For instance, suppose the current URL is `/user/(box//aux:team)`. The
3385
+ * link `<a [routerLink]="['/user/jim']">Jim</a>` creates the URL
3386
3386
  * `/user/(jim//aux:team)`.
3387
3387
  * See {@link Router#createUrlTree} for more information.
3388
3388
  *
@@ -3394,23 +3394,25 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
3394
3394
  * ### Relative link paths
3395
3395
  *
3396
3396
  * The first segment name can be prepended with `/`, `./`, or `../`.
3397
- * * If the first segment begins with `/`, the router looks up the route from the root of the
3398
- * app.
3399
- * * If the first segment begins with `./`, or doesn't begin with a slash, the router
3400
- * looks in the children of the current activated route.
3401
- * * If the first segment begins with `../`, the router goes up one level in the route tree.
3397
+ * * If the first segment begins with `/`, the router looks up the route from
3398
+ * the root of the app.
3399
+ * * If the first segment begins with `./`, or doesn't begin with a slash, the
3400
+ * router looks in the children of the current activated route.
3401
+ * * If the first segment begins with `../`, the router goes up one level in the
3402
+ * route tree.
3402
3403
  *
3403
3404
  * ### Setting and handling query params and fragments
3404
3405
  *
3405
- * The following link adds a query parameter and a fragment to the generated URL:
3406
+ * The following link adds a query parameter and a fragment to the generated
3407
+ * URL:
3406
3408
  *
3407
3409
  * ```html
3408
- * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
3409
- * link to user component
3410
+ * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}"
3411
+ * fragment="education"> link to user component
3410
3412
  * </a>
3411
3413
  * ```
3412
- * By default, the directive constructs the new URL using the given query parameters.
3413
- * The example generates the link: `/user/bob?debug=true#education`.
3414
+ * By default, the directive constructs the new URL using the given query
3415
+ * parameters. The example generates the link: `/user/bob?debug=true#education`.
3414
3416
  *
3415
3417
  * You can instruct the directive to handle query parameters differently
3416
3418
  * by specifying the `queryParamsHandling` option in the link.
@@ -3422,20 +3424,21 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
3422
3424
  * For example:
3423
3425
  *
3424
3426
  * ```html
3425
- * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" queryParamsHandling="merge">
3426
- * link to user component
3427
+ * <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}"
3428
+ * queryParamsHandling="merge"> link to user component
3427
3429
  * </a>
3428
3430
  * ```
3429
3431
  *
3430
- * `queryParams`, `fragment`, `queryParamsHandling`, `preserveFragment`, and `relativeTo`
3431
- * cannot be used when the `routerLink` input is a `UrlTree`.
3432
+ * `queryParams`, `fragment`, `queryParamsHandling`, `preserveFragment`, and
3433
+ * `relativeTo` cannot be used when the `routerLink` input is a `UrlTree`.
3432
3434
  *
3433
3435
  * See {@link UrlCreationOptions#queryParamsHandling}.
3434
3436
  *
3435
3437
  * ### Preserving navigation history
3436
3438
  *
3437
3439
  * You can provide a `state` value to be persisted to the browser's
3438
- * [`History.state` property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).
3440
+ * [`History.state`
3441
+ * property](https://developer.mozilla.org/en-US/docs/Web/API/History#Properties).
3439
3442
  * For example:
3440
3443
  *
3441
3444
  * ```html
@@ -3458,9 +3461,9 @@ declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
3458
3461
  *
3459
3462
  * ### RouterLink compatible custom elements
3460
3463
  *
3461
- * In order to make a custom element work with routerLink, the corresponding custom
3462
- * element must implement the `href` attribute and must list `href` in the array of
3463
- * the static property/getter `observedAttributes`.
3464
+ * In order to make a custom element work with routerLink, the corresponding
3465
+ * custom element must implement the `href` attribute and must list `href` in
3466
+ * the array of the static property/getter `observedAttributes`.
3464
3467
  *
3465
3468
  * @ngModule RouterModule
3466
3469
  *
@@ -3473,12 +3476,13 @@ declare class RouterLink implements OnChanges, OnDestroy {
3473
3476
  private readonly renderer;
3474
3477
  private readonly el;
3475
3478
  private locationStrategy?;
3476
- /** @nodoc */
3479
+ private hrefAttributeValue;
3480
+ /** @docs-private */
3477
3481
  protected readonly reactiveHref: i0.WritableSignal<string | null>;
3478
3482
  /**
3479
3483
  * Represents an `href` attribute value applied to a host element,
3480
- * when a host element is an `<a>`/`<area>` tag or a compatible custom element.
3481
- * For other tags, the value is `null`.
3484
+ * when a host element is an `<a>`/`<area>` tag or a compatible custom
3485
+ * element. For other tags, the value is `null`.
3482
3486
  */
3483
3487
  get href(): string | null;
3484
3488
  /** @deprecated */
@@ -3488,44 +3492,57 @@ declare class RouterLink implements OnChanges, OnDestroy {
3488
3492
  * This is only used when the host element is
3489
3493
  * an `<a>`/`<area>` tag or a compatible custom element.
3490
3494
  */
3491
- target?: string;
3495
+ set target(value: string | undefined);
3496
+ get target(): string | undefined;
3492
3497
  /**
3493
3498
  * Passed to {@link Router#createUrlTree} as part of the
3494
3499
  * `UrlCreationOptions`.
3495
3500
  * @see {@link UrlCreationOptions#queryParams}
3496
3501
  * @see {@link Router#createUrlTree}
3497
3502
  */
3498
- queryParams?: Params | null;
3503
+ set queryParams(value: Params | null | undefined);
3504
+ get queryParams(): Params | null | undefined;
3505
+ private _queryParams;
3499
3506
  /**
3500
3507
  * Passed to {@link Router#createUrlTree} as part of the
3501
3508
  * `UrlCreationOptions`.
3502
3509
  * @see {@link UrlCreationOptions#fragment}
3503
3510
  * @see {@link Router#createUrlTree}
3504
3511
  */
3505
- fragment?: string;
3512
+ set fragment(value: string | undefined);
3513
+ get fragment(): string | undefined;
3514
+ private _fragment;
3506
3515
  /**
3507
3516
  * Passed to {@link Router#createUrlTree} as part of the
3508
3517
  * `UrlCreationOptions`.
3509
3518
  * @see {@link UrlCreationOptions#queryParamsHandling}
3510
3519
  * @see {@link Router#createUrlTree}
3511
3520
  */
3512
- queryParamsHandling?: QueryParamsHandling | null;
3521
+ set queryParamsHandling(value: QueryParamsHandling | null | undefined);
3522
+ get queryParamsHandling(): QueryParamsHandling | null | undefined;
3523
+ private _queryParamsHandling;
3513
3524
  /**
3514
3525
  * Passed to {@link Router#navigateByUrl} as part of the
3515
3526
  * `NavigationBehaviorOptions`.
3516
3527
  * @see {@link NavigationBehaviorOptions#state}
3517
3528
  * @see {@link Router#navigateByUrl}
3518
3529
  */
3519
- state?: {
3530
+ set state(value: {
3520
3531
  [k: string]: any;
3521
- };
3532
+ } | undefined);
3533
+ get state(): {
3534
+ [k: string]: any;
3535
+ } | undefined;
3536
+ private _state;
3522
3537
  /**
3523
3538
  * Passed to {@link Router#navigateByUrl} as part of the
3524
3539
  * `NavigationBehaviorOptions`.
3525
3540
  * @see {@link NavigationBehaviorOptions#info}
3526
3541
  * @see {@link Router#navigateByUrl}
3527
3542
  */
3528
- info?: unknown;
3543
+ set info(value: unknown);
3544
+ get info(): unknown;
3545
+ private _info;
3529
3546
  /**
3530
3547
  * Passed to {@link Router#createUrlTree} as part of the
3531
3548
  * `UrlCreationOptions`.
@@ -3535,38 +3552,48 @@ declare class RouterLink implements OnChanges, OnDestroy {
3535
3552
  * @see {@link UrlCreationOptions#relativeTo}
3536
3553
  * @see {@link Router#createUrlTree}
3537
3554
  */
3538
- relativeTo?: ActivatedRoute | null;
3539
- /** Whether a host element is an `<a>`/`<area>` tag or a compatible custom element. */
3540
- private isAnchorElement;
3541
- private subscription?;
3542
- private readonly applicationErrorHandler;
3543
- private readonly options;
3544
- constructor(router: Router, route: ActivatedRoute, tabIndexAttribute: string | null | undefined, renderer: Renderer2, el: ElementRef, locationStrategy?: LocationStrategy | undefined);
3545
- private subscribeToNavigationEventsIfNecessary;
3555
+ set relativeTo(value: ActivatedRoute | null | undefined);
3556
+ get relativeTo(): ActivatedRoute | null | undefined;
3557
+ private _relativeTo;
3546
3558
  /**
3547
3559
  * Passed to {@link Router#createUrlTree} as part of the
3548
3560
  * `UrlCreationOptions`.
3549
3561
  * @see {@link UrlCreationOptions#preserveFragment}
3550
3562
  * @see {@link Router#createUrlTree}
3551
3563
  */
3552
- preserveFragment: boolean;
3564
+ set preserveFragment(value: boolean);
3565
+ get preserveFragment(): boolean;
3566
+ private _preserveFragment;
3553
3567
  /**
3554
3568
  * Passed to {@link Router#navigateByUrl} as part of the
3555
3569
  * `NavigationBehaviorOptions`.
3556
3570
  * @see {@link NavigationBehaviorOptions#skipLocationChange}
3557
3571
  * @see {@link Router#navigateByUrl}
3558
3572
  */
3559
- skipLocationChange: boolean;
3573
+ set skipLocationChange(value: boolean);
3574
+ get skipLocationChange(): boolean;
3575
+ private _skipLocationChange;
3560
3576
  /**
3561
3577
  * Passed to {@link Router#navigateByUrl} as part of the
3562
3578
  * `NavigationBehaviorOptions`.
3563
3579
  * @see {@link NavigationBehaviorOptions#replaceUrl}
3564
3580
  * @see {@link Router#navigateByUrl}
3565
3581
  */
3566
- replaceUrl: boolean;
3582
+ set replaceUrl(value: boolean);
3583
+ get replaceUrl(): boolean;
3584
+ private _replaceUrl;
3567
3585
  /**
3568
- * Modifies the tab index if there was not a tabindex attribute on the element during
3569
- * instantiation.
3586
+ * Whether a host element is an `<a>`/`<area>` tag or a compatible custom
3587
+ * element.
3588
+ */
3589
+ private readonly isAnchorElement;
3590
+ private readonly applicationErrorHandler;
3591
+ private readonly options;
3592
+ private readonly reactiveRouterState;
3593
+ constructor(router: Router, route: ActivatedRoute, tabIndexAttribute: string | null | undefined, renderer: Renderer2, el: ElementRef, locationStrategy?: LocationStrategy | undefined);
3594
+ /**
3595
+ * Modifies the tab index if there was not a tabindex attribute on the element
3596
+ * during instantiation.
3570
3597
  */
3571
3598
  private setTabIndexIfNotOnNativeEl;
3572
3599
  /** @docs-private */
@@ -3575,9 +3602,11 @@ declare class RouterLink implements OnChanges, OnDestroy {
3575
3602
  /**
3576
3603
  * Commands to pass to {@link Router#createUrlTree} or a `UrlTree`.
3577
3604
  * - **array**: commands to pass to {@link Router#createUrlTree}.
3578
- * - **string**: shorthand for array of commands with just the string, i.e. `['/route']`
3579
- * - **UrlTree**: a `UrlTree` for this link rather than creating one from the commands
3580
- * and other inputs that correspond to properties of `UrlCreationOptions`.
3605
+ * - **string**: shorthand for array of commands with just the string, i.e.
3606
+ * `['/route']`
3607
+ * - **UrlTree**: a `UrlTree` for this link rather than creating one from
3608
+ * the commands and other inputs that correspond to properties of
3609
+ * `UrlCreationOptions`.
3581
3610
  * - **null|undefined**: effectively disables the `routerLink`
3582
3611
  * @see {@link Router#createUrlTree}
3583
3612
  */
@@ -3586,9 +3615,9 @@ declare class RouterLink implements OnChanges, OnDestroy {
3586
3615
  onClick(button: number, ctrlKey: boolean, shiftKey: boolean, altKey: boolean, metaKey: boolean): boolean;
3587
3616
  /** @docs-private */
3588
3617
  ngOnDestroy(): any;
3589
- private updateHref;
3590
3618
  private applyAttributeValue;
3591
3619
  get urlTree(): UrlTree | null;
3620
+ private computeHref;
3592
3621
  static ɵfac: i0.ɵɵFactoryDeclaration<RouterLink, [null, null, { attribute: "tabindex"; }, null, null, null]>;
3593
3622
  static ɵdir: i0.ɵɵDirectiveDeclaration<RouterLink, "[routerLink]", never, { "target": { "alias": "target"; "required": false; }; "queryParams": { "alias": "queryParams"; "required": false; }; "fragment": { "alias": "fragment"; "required": false; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; }; "state": { "alias": "state"; "required": false; }; "info": { "alias": "info"; "required": false; }; "relativeTo": { "alias": "relativeTo"; "required": false; }; "preserveFragment": { "alias": "preserveFragment"; "required": false; }; "skipLocationChange": { "alias": "skipLocationChange"; "required": false; }; "replaceUrl": { "alias": "replaceUrl"; "required": false; }; "routerLink": { "alias": "routerLink"; "required": false; }; }, {}, never, never, true, never>;
3594
3623
  static ngAcceptInputType_preserveFragment: unknown;
package/types/router.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.1
2
+ * @license Angular v21.2.0-next.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.1
2
+ * @license Angular v21.2.0-next.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.1
2
+ * @license Angular v21.2.0-next.0
3
3
  * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */