@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.
- package/animations/index.d.ts +1 -1
- package/esm2022/animations/src/animation_builder.mjs +3 -3
- package/esm2022/animations/src/animation_renderer.mjs +3 -3
- package/esm2022/animations/src/module.mjs +8 -8
- package/esm2022/animations/src/providers.mjs +3 -3
- package/esm2022/src/browser/browser_adapter.mjs +3 -5
- package/esm2022/src/browser/meta.mjs +3 -3
- package/esm2022/src/browser/title.mjs +3 -3
- package/esm2022/src/browser/xhr.mjs +3 -3
- package/esm2022/src/browser.mjs +4 -4
- package/esm2022/src/dom/dom_renderer.mjs +3 -3
- package/esm2022/src/dom/events/dom_events.mjs +3 -3
- package/esm2022/src/dom/events/event_manager.mjs +3 -3
- package/esm2022/src/dom/events/hammer_gestures.mjs +10 -10
- package/esm2022/src/dom/events/key_events.mjs +3 -3
- package/esm2022/src/dom/shared_styles_host.mjs +3 -3
- package/esm2022/src/hydration.mjs +25 -1
- package/esm2022/src/security/dom_sanitization_service.mjs +6 -6
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/browser.mjs +4 -4
- package/fesm2022/animations.mjs +18 -18
- package/fesm2022/platform-browser.mjs +72 -50
- package/fesm2022/platform-browser.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/index.d.ts +25 -1
- package/package.json +4 -4
- package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Angular v16.0.0-rc.
|
2
|
+
* @license Angular v16.0.0-rc.2
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
4
4
|
* License: MIT
|
5
5
|
*/
|
@@ -35,11 +35,9 @@ class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
|
35
35
|
ɵsetRootDomAdapter(new BrowserDomAdapter());
|
36
36
|
}
|
37
37
|
onAndCancel(el, evt, listener) {
|
38
|
-
el.addEventListener(evt, listener
|
39
|
-
// Needed to follow Dart's subscription semantic, until fix of
|
40
|
-
// https://code.google.com/p/dart/issues/detail?id=17406
|
38
|
+
el.addEventListener(evt, listener);
|
41
39
|
return () => {
|
42
|
-
el.removeEventListener(evt, listener
|
40
|
+
el.removeEventListener(evt, listener);
|
43
41
|
};
|
44
42
|
}
|
45
43
|
dispatchEvent(el, evt) {
|
@@ -163,10 +161,10 @@ class BrowserXhr {
|
|
163
161
|
build() {
|
164
162
|
return new XMLHttpRequest();
|
165
163
|
}
|
166
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
167
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
164
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
165
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserXhr }); }
|
168
166
|
}
|
169
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserXhr, decorators: [{
|
170
168
|
type: Injectable
|
171
169
|
}] });
|
172
170
|
|
@@ -229,10 +227,10 @@ class EventManager {
|
|
229
227
|
}
|
230
228
|
throw new Error(`No event manager plugin found for event ${eventName}`);
|
231
229
|
}
|
232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
233
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EventManager, deps: [{ token: EVENT_MANAGER_PLUGINS }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
231
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EventManager }); }
|
234
232
|
}
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EventManager, decorators: [{
|
236
234
|
type: Injectable
|
237
235
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
238
236
|
type: Inject,
|
@@ -374,10 +372,10 @@ class SharedStylesHost {
|
|
374
372
|
// Re-add the head element back since this is the default host.
|
375
373
|
hostNodes.add(this.doc.head);
|
376
374
|
}
|
377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
378
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
375
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: SharedStylesHost, deps: [{ token: DOCUMENT }, { token: APP_ID }, { token: CSP_NONCE, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
376
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: SharedStylesHost }); }
|
379
377
|
}
|
380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: SharedStylesHost, decorators: [{
|
381
379
|
type: Injectable
|
382
380
|
}], ctorParameters: function () { return [{ type: Document, decorators: [{
|
383
381
|
type: Inject,
|
@@ -493,10 +491,10 @@ class DomRendererFactory2 {
|
|
493
491
|
ngOnDestroy() {
|
494
492
|
this.rendererByCompId.clear();
|
495
493
|
}
|
496
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
497
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
494
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomRendererFactory2, deps: [{ token: EventManager }, { token: SharedStylesHost }, { token: APP_ID }, { token: REMOVE_STYLES_ON_COMPONENT_DESTROY }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i0.NgZone }, { token: CSP_NONCE }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
495
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomRendererFactory2 }); }
|
498
496
|
}
|
499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomRendererFactory2, decorators: [{
|
500
498
|
type: Injectable
|
501
499
|
}], ctorParameters: function () { return [{ type: EventManager }, { type: SharedStylesHost }, { type: undefined, decorators: [{
|
502
500
|
type: Inject,
|
@@ -777,10 +775,10 @@ class DomEventsPlugin extends EventManagerPlugin {
|
|
777
775
|
removeEventListener(target, eventName, callback) {
|
778
776
|
return target.removeEventListener(eventName, callback);
|
779
777
|
}
|
780
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
781
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
778
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
779
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomEventsPlugin }); }
|
782
780
|
}
|
783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomEventsPlugin, decorators: [{
|
784
782
|
type: Injectable
|
785
783
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
786
784
|
type: Inject,
|
@@ -956,10 +954,10 @@ class KeyEventsPlugin extends EventManagerPlugin {
|
|
956
954
|
return keyName;
|
957
955
|
}
|
958
956
|
}
|
959
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
960
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
957
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: KeyEventsPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
958
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: KeyEventsPlugin }); }
|
961
959
|
}
|
962
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: KeyEventsPlugin, decorators: [{
|
963
961
|
type: Injectable
|
964
962
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
965
963
|
type: Inject,
|
@@ -1166,11 +1164,11 @@ class BrowserModule {
|
|
1166
1164
|
],
|
1167
1165
|
};
|
1168
1166
|
}
|
1169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1170
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.
|
1171
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1167
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserModule, deps: [{ token: BROWSER_MODULE_PROVIDERS_MARKER, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1168
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserModule, exports: [CommonModule, ApplicationModule] }); }
|
1169
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserModule, providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS], imports: [CommonModule, ApplicationModule] }); }
|
1172
1170
|
}
|
1173
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: BrowserModule, decorators: [{
|
1174
1172
|
type: NgModule,
|
1175
1173
|
args: [{
|
1176
1174
|
providers: [...BROWSER_MODULE_PROVIDERS, ...TESTABILITY_PROVIDERS],
|
@@ -1340,10 +1338,10 @@ class Meta {
|
|
1340
1338
|
_getMetaKeyMap(prop) {
|
1341
1339
|
return META_KEYS_MAP[prop] || prop;
|
1342
1340
|
}
|
1343
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1344
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1341
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: Meta, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1342
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: Meta, providedIn: 'root', useFactory: createMeta, deps: [] }); }
|
1345
1343
|
}
|
1346
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: Meta, decorators: [{
|
1347
1345
|
type: Injectable,
|
1348
1346
|
args: [{ providedIn: 'root', useFactory: createMeta, deps: [] }]
|
1349
1347
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1390,10 +1388,10 @@ class Title {
|
|
1390
1388
|
setTitle(newTitle) {
|
1391
1389
|
this._doc.title = newTitle || '';
|
1392
1390
|
}
|
1393
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1394
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1391
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: Title, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1392
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: Title, providedIn: 'root', useFactory: createTitle, deps: [] }); }
|
1395
1393
|
}
|
1396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: Title, decorators: [{
|
1397
1395
|
type: Injectable,
|
1398
1396
|
args: [{ providedIn: 'root', useFactory: createTitle, deps: [] }]
|
1399
1397
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1662,10 +1660,10 @@ class HammerGestureConfig {
|
|
1662
1660
|
}
|
1663
1661
|
return mc;
|
1664
1662
|
}
|
1665
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1666
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1663
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerGestureConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1664
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerGestureConfig }); }
|
1667
1665
|
}
|
1668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerGestureConfig, decorators: [{
|
1669
1667
|
type: Injectable
|
1670
1668
|
}] });
|
1671
1669
|
/**
|
@@ -1760,10 +1758,10 @@ class HammerGesturesPlugin extends EventManagerPlugin {
|
|
1760
1758
|
isCustomEvent(eventName) {
|
1761
1759
|
return this._config.events.indexOf(eventName) > -1;
|
1762
1760
|
}
|
1763
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1764
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1761
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerGesturesPlugin, deps: [{ token: DOCUMENT }, { token: HAMMER_GESTURE_CONFIG }, { token: i0.ɵConsole }, { token: HAMMER_LOADER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1762
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerGesturesPlugin }); }
|
1765
1763
|
}
|
1766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerGesturesPlugin, decorators: [{
|
1767
1765
|
type: Injectable
|
1768
1766
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
1769
1767
|
type: Inject,
|
@@ -1789,9 +1787,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.1", ng
|
|
1789
1787
|
* @publicApi
|
1790
1788
|
*/
|
1791
1789
|
class HammerModule {
|
1792
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1793
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.
|
1794
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1790
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
1791
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerModule }); }
|
1792
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerModule, providers: [
|
1795
1793
|
{
|
1796
1794
|
provide: EVENT_MANAGER_PLUGINS,
|
1797
1795
|
useClass: HammerGesturesPlugin,
|
@@ -1801,7 +1799,7 @@ class HammerModule {
|
|
1801
1799
|
{ provide: HAMMER_GESTURE_CONFIG, useClass: HammerGestureConfig, deps: [] },
|
1802
1800
|
] }); }
|
1803
1801
|
}
|
1804
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: HammerModule, decorators: [{
|
1805
1803
|
type: NgModule,
|
1806
1804
|
args: [{
|
1807
1805
|
providers: [
|
@@ -1848,10 +1846,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.1", ng
|
|
1848
1846
|
* @publicApi
|
1849
1847
|
*/
|
1850
1848
|
class DomSanitizer {
|
1851
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1852
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1849
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomSanitizer, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1850
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomSanitizer, providedIn: 'root', useExisting: i0.forwardRef(function () { return DomSanitizerImpl; }) }); }
|
1853
1851
|
}
|
1854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1852
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomSanitizer, decorators: [{
|
1855
1853
|
type: Injectable,
|
1856
1854
|
args: [{ providedIn: 'root', useExisting: forwardRef(() => DomSanitizerImpl) }]
|
1857
1855
|
}] });
|
@@ -1913,10 +1911,10 @@ class DomSanitizerImpl extends DomSanitizer {
|
|
1913
1911
|
bypassSecurityTrustResourceUrl(value) {
|
1914
1912
|
return ɵbypassSanitizationTrustResourceUrl(value);
|
1915
1913
|
}
|
1916
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1917
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1914
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomSanitizerImpl, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
1915
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomSanitizerImpl, providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [{ token: Injector }] }); }
|
1918
1916
|
}
|
1919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.
|
1917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DomSanitizerImpl, decorators: [{
|
1920
1918
|
type: Injectable,
|
1921
1919
|
args: [{ providedIn: 'root', useFactory: domSanitizerImplFactory, deps: [Injector] }]
|
1922
1920
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
@@ -1934,6 +1932,30 @@ function hydrationFeature(kind, providers = []) {
|
|
1934
1932
|
* Disables DOM nodes reuse during hydration. Effectively makes
|
1935
1933
|
* Angular re-render an application from scratch on the client.
|
1936
1934
|
*
|
1935
|
+
* When this option is enabled, make sure that the initial navigation
|
1936
|
+
* option is configured for the Router as `enabledBlocking` by using the
|
1937
|
+
* `withEnabledBlockingInitialNavigation` in the `provideRouter` call:
|
1938
|
+
*
|
1939
|
+
* ```
|
1940
|
+
* bootstrapApplication(RootComponent, {
|
1941
|
+
* providers: [
|
1942
|
+
* provideRouter(
|
1943
|
+
* // ... other features ...
|
1944
|
+
* withEnabledBlockingInitialNavigation()
|
1945
|
+
* ),
|
1946
|
+
* provideClientHydration(withNoDomReuse())
|
1947
|
+
* ]
|
1948
|
+
* });
|
1949
|
+
* ```
|
1950
|
+
*
|
1951
|
+
* This would ensure that the application is rerendered after all async
|
1952
|
+
* operations in the Router (such as lazy-loading of components,
|
1953
|
+
* waiting for async guards and resolvers) are completed to avoid
|
1954
|
+
* clearing the DOM on the client too soon, thus causing content flicker.
|
1955
|
+
*
|
1956
|
+
* @see `provideRouter`
|
1957
|
+
* @see `withEnabledBlockingInitialNavigation`
|
1958
|
+
*
|
1937
1959
|
* @publicApi
|
1938
1960
|
* @developerPreview
|
1939
1961
|
*/
|
@@ -2015,7 +2037,7 @@ function provideClientHydration(...features) {
|
|
2015
2037
|
/**
|
2016
2038
|
* @publicApi
|
2017
2039
|
*/
|
2018
|
-
const VERSION = new Version('16.0.0-rc.
|
2040
|
+
const VERSION = new Version('16.0.0-rc.2');
|
2019
2041
|
|
2020
2042
|
// Re-export TransferState to the public API of the `platform-browser` for backwards-compatibility.
|
2021
2043
|
/**
|