@angular/platform-browser 16.0.0-rc.1 → 16.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 v16.0.0-rc.1
2
+ * @license Angular v16.0.0-rc.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -194,15 +194,15 @@ const platformBrowserTesting = createPlatformFactory(platformCore, 'browserTesti
194
194
  * @publicApi
195
195
  */
196
196
  class BrowserTestingModule {
197
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.1", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
198
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.1", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
199
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.1", ngImport: i0, type: BrowserTestingModule, providers: [
197
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
198
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, exports: [BrowserModule] }); }
199
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, providers: [
200
200
  { provide: APP_ID, useValue: 'a' },
201
201
  provideZoneChangeDetection(),
202
202
  { provide: PlatformLocation, useClass: MockPlatformLocation },
203
203
  ], imports: [BrowserModule] }); }
204
204
  }
205
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.1", ngImport: i0, type: BrowserTestingModule, decorators: [{
205
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserTestingModule, decorators: [{
206
206
  type: NgModule,
207
207
  args: [{
208
208
  exports: [BrowserModule],
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-rc.1
2
+ * @license Angular v16.0.0-rc.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -801,6 +801,30 @@ export declare const VERSION: Version;
801
801
  * Disables DOM nodes reuse during hydration. Effectively makes
802
802
  * Angular re-render an application from scratch on the client.
803
803
  *
804
+ * When this option is enabled, make sure that the initial navigation
805
+ * option is configured for the Router as `enabledBlocking` by using the
806
+ * `withEnabledBlockingInitialNavigation` in the `provideRouter` call:
807
+ *
808
+ * ```
809
+ * bootstrapApplication(RootComponent, {
810
+ * providers: [
811
+ * provideRouter(
812
+ * // ... other features ...
813
+ * withEnabledBlockingInitialNavigation()
814
+ * ),
815
+ * provideClientHydration(withNoDomReuse())
816
+ * ]
817
+ * });
818
+ * ```
819
+ *
820
+ * This would ensure that the application is rerendered after all async
821
+ * operations in the Router (such as lazy-loading of components,
822
+ * waiting for async guards and resolvers) are completed to avoid
823
+ * clearing the DOM on the client too soon, thus causing content flicker.
824
+ *
825
+ * @see `provideRouter`
826
+ * @see `withEnabledBlockingInitialNavigation`
827
+ *
804
828
  * @publicApi
805
829
  * @developerPreview
806
830
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser",
3
- "version": "16.0.0-rc.1",
3
+ "version": "16.0.0-rc.2",
4
4
  "description": "Angular - library for using Angular in a web browser",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,9 +11,9 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/animations": "16.0.0-rc.1",
15
- "@angular/core": "16.0.0-rc.1",
16
- "@angular/common": "16.0.0-rc.1"
14
+ "@angular/animations": "16.0.0-rc.2",
15
+ "@angular/core": "16.0.0-rc.2",
16
+ "@angular/common": "16.0.0-rc.2"
17
17
  },
18
18
  "peerDependenciesMeta": {
19
19
  "@angular/animations": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-rc.1
2
+ * @license Angular v16.0.0-rc.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */