@angular/router 15.1.0-next.2 → 15.1.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 v15.1.0-next.2
2
+ * @license Angular v15.1.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -126,16 +126,16 @@ class RouterTestingModule {
126
126
  };
127
127
  }
128
128
  }
129
- RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
130
- RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
131
- RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterTestingModule, providers: [
129
+ RouterTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: RouterTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
130
+ RouterTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.0-next.3", ngImport: i0, type: RouterTestingModule, exports: [RouterModule] });
131
+ RouterTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: RouterTestingModule, providers: [
132
132
  ɵROUTER_PROVIDERS,
133
133
  EXTRA_ROUTER_TESTING_PROVIDERS,
134
134
  provideLocationMocks(),
135
135
  ɵwithPreloading(NoPreloading).ɵproviders,
136
136
  { provide: ROUTES, multi: true, useValue: [] },
137
137
  ], imports: [RouterModule] });
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.2", ngImport: i0, type: RouterTestingModule, decorators: [{
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.0-next.3", ngImport: i0, type: RouterTestingModule, decorators: [{
139
139
  type: NgModule,
140
140
  args: [{
141
141
  exports: [RouterModule],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.0-next.2
2
+ * @license Angular v15.1.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.0-next.2
2
+ * @license Angular v15.1.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2668,6 +2668,8 @@ export declare class Router {
2668
2668
  * `{provide: RouteReuseStrategy, useClass: MyStrategy}`.
2669
2669
  */
2670
2670
  routeReuseStrategy: RouteReuseStrategy;
2671
+ /** Strategy used to create a UrlTree. */
2672
+ private readonly urlCreationStrategy;
2671
2673
  /**
2672
2674
  * A strategy for setting the title based on the `routerState`.
2673
2675
  *
@@ -3098,7 +3100,8 @@ declare const enum RouterFeatureKind {
3098
3100
  EnabledBlockingInitialNavigationFeature = 2,
3099
3101
  DisabledInitialNavigationFeature = 3,
3100
3102
  InMemoryScrollingFeature = 4,
3101
- RouterConfigurationFeature = 5
3103
+ RouterConfigurationFeature = 5,
3104
+ RouterHashLocationFeature = 6
3102
3105
  }
3103
3106
 
3104
3107
  /**
@@ -3113,6 +3116,16 @@ declare const enum RouterFeatureKind {
3113
3116
  */
3114
3117
  export declare type RouterFeatures = PreloadingFeature | DebugTracingFeature | InitialNavigationFeature | InMemoryScrollingFeature | RouterConfigurationFeature;
3115
3118
 
3119
+ /**
3120
+ * A type alias for providers returned by `withHashLocation` for use with `provideRouter`.
3121
+ *
3122
+ * @see `withHashLocation`
3123
+ * @see `provideRouter`
3124
+ *
3125
+ * @publicApi
3126
+ */
3127
+ export declare type RouterHashLocationFeature = RouterFeature<RouterFeatureKind.RouterHashLocationFeature>;
3128
+
3116
3129
  /**
3117
3130
  * @description
3118
3131
  *
@@ -3406,7 +3419,8 @@ export declare class RouterLinkActive implements OnChanges, OnDestroy, AfterCont
3406
3419
  private classes;
3407
3420
  private routerEventsSubscription;
3408
3421
  private linkInputChangesSubscription?;
3409
- readonly isActive: boolean;
3422
+ private _isActive;
3423
+ get isActive(): boolean;
3410
3424
  /**
3411
3425
  * Options to configure how to determine if the router link is active.
3412
3426
  *
@@ -3812,7 +3826,7 @@ export declare class RouterStateSnapshot extends Tree<ActivatedRouteSnapshot> {
3812
3826
  * `ROUTES` is a low level API for router configuration via dependency injection.
3813
3827
  *
3814
3828
  * We recommend that in almost all cases to use higher level APIs such as `RouterModule.forRoot()`,
3815
- * `RouterModule.forChild()`, `provideRoutes`, or `Router.resetConfig()`.
3829
+ * `provideRouter`, or `Router.resetConfig()`.
3816
3830
  *
3817
3831
  * @publicApi
3818
3832
  */
@@ -4357,6 +4371,32 @@ export declare function withDisabledInitialNavigation(): DisabledInitialNavigati
4357
4371
  */
4358
4372
  export declare function withEnabledBlockingInitialNavigation(): EnabledBlockingInitialNavigationFeature;
4359
4373
 
4374
+ /**
4375
+ * Provides the location strategy that uses the URL fragment instead of the history API.
4376
+ *
4377
+ * @usageNotes
4378
+ *
4379
+ * Basic example of how you can use the hash location option:
4380
+ * ```
4381
+ * const appRoutes: Routes = [];
4382
+ * bootstrapApplication(AppComponent,
4383
+ * {
4384
+ * providers: [
4385
+ * provideRouter(appRoutes, withHashLocation()
4386
+ * ]
4387
+ * }
4388
+ * );
4389
+ * ```
4390
+ *
4391
+ * @see `provideRouter`
4392
+ * @see `HashLocationStrategy`
4393
+ *
4394
+ * @returns A set of providers for use with `provideRouter`.
4395
+ *
4396
+ * @publicApi
4397
+ */
4398
+ export declare function withHashLocation(): RouterConfigurationFeature;
4399
+
4360
4400
  /**
4361
4401
  * Enables customizable scrolling behavior for router navigations.
4362
4402
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/router",
3
- "version": "15.1.0-next.2",
3
+ "version": "15.1.0-next.3",
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": "15.1.0-next.2",
28
- "@angular/common": "15.1.0-next.2",
29
- "@angular/platform-browser": "15.1.0-next.2",
27
+ "@angular/core": "15.1.0-next.3",
28
+ "@angular/common": "15.1.0-next.3",
29
+ "@angular/platform-browser": "15.1.0-next.3",
30
30
  "rxjs": "^6.5.3 || ^7.4.0"
31
31
  },
32
32
  "ng-update": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v15.1.0-next.2
2
+ * @license Angular v15.1.0-next.3
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 v15.1.0-next.2
2
+ * @license Angular v15.1.0-next.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */