@angular/common 21.2.0-next.0 → 21.2.0-next.1
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/fesm2022/_common_module-chunk.mjs +86 -86
- package/fesm2022/_location-chunk.mjs +88 -11
- package/fesm2022/_location-chunk.mjs.map +1 -1
- package/fesm2022/_module-chunk.mjs +46 -46
- package/fesm2022/_platform_location-chunk.mjs +7 -7
- package/fesm2022/_platform_navigation-chunk.mjs +4 -4
- package/fesm2022/_xhr-chunk.mjs +1 -1
- package/fesm2022/common.mjs +18 -18
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http-testing.mjs +8 -8
- package/fesm2022/http.mjs +1 -1
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/upgrade.mjs +5 -5
- package/package.json +2 -2
- package/types/_common_module-chunk.d.ts +29 -2
- package/types/_module-chunk.d.ts +1 -1
- package/types/_platform_location-chunk.d.ts +1 -1
- package/types/_xhr-chunk.d.ts +1 -1
- package/types/common.d.ts +4 -15
- package/types/http-testing.d.ts +1 -1
- package/types/http.d.ts +1 -1
- package/types/testing.d.ts +1 -1
- package/types/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.0-next.
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -227,7 +227,7 @@ class HttpClientTestingBackend {
|
|
|
227
227
|
}
|
|
228
228
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
229
229
|
minVersion: "12.0.0",
|
|
230
|
-
version: "21.2.0-next.
|
|
230
|
+
version: "21.2.0-next.1",
|
|
231
231
|
ngImport: i0,
|
|
232
232
|
type: HttpClientTestingBackend,
|
|
233
233
|
deps: [],
|
|
@@ -235,14 +235,14 @@ class HttpClientTestingBackend {
|
|
|
235
235
|
});
|
|
236
236
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
237
237
|
minVersion: "12.0.0",
|
|
238
|
-
version: "21.2.0-next.
|
|
238
|
+
version: "21.2.0-next.1",
|
|
239
239
|
ngImport: i0,
|
|
240
240
|
type: HttpClientTestingBackend
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
i0.ɵɵngDeclareClassMetadata({
|
|
244
244
|
minVersion: "12.0.0",
|
|
245
|
-
version: "21.2.0-next.
|
|
245
|
+
version: "21.2.0-next.1",
|
|
246
246
|
ngImport: i0,
|
|
247
247
|
type: HttpClientTestingBackend,
|
|
248
248
|
decorators: [{
|
|
@@ -271,7 +271,7 @@ function provideHttpClientTesting() {
|
|
|
271
271
|
class HttpClientTestingModule {
|
|
272
272
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
273
273
|
minVersion: "12.0.0",
|
|
274
|
-
version: "21.2.0-next.
|
|
274
|
+
version: "21.2.0-next.1",
|
|
275
275
|
ngImport: i0,
|
|
276
276
|
type: HttpClientTestingModule,
|
|
277
277
|
deps: [],
|
|
@@ -279,14 +279,14 @@ class HttpClientTestingModule {
|
|
|
279
279
|
});
|
|
280
280
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
281
281
|
minVersion: "14.0.0",
|
|
282
|
-
version: "21.2.0-next.
|
|
282
|
+
version: "21.2.0-next.1",
|
|
283
283
|
ngImport: i0,
|
|
284
284
|
type: HttpClientTestingModule,
|
|
285
285
|
imports: [HttpClientModule]
|
|
286
286
|
});
|
|
287
287
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
288
288
|
minVersion: "12.0.0",
|
|
289
|
-
version: "21.2.0-next.
|
|
289
|
+
version: "21.2.0-next.1",
|
|
290
290
|
ngImport: i0,
|
|
291
291
|
type: HttpClientTestingModule,
|
|
292
292
|
providers: [provideHttpClientTesting()],
|
|
@@ -295,7 +295,7 @@ class HttpClientTestingModule {
|
|
|
295
295
|
}
|
|
296
296
|
i0.ɵɵngDeclareClassMetadata({
|
|
297
297
|
minVersion: "12.0.0",
|
|
298
|
-
version: "21.2.0-next.
|
|
298
|
+
version: "21.2.0-next.1",
|
|
299
299
|
ngImport: i0,
|
|
300
300
|
type: HttpClientTestingModule,
|
|
301
301
|
decorators: [{
|
package/fesm2022/http.mjs
CHANGED
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.0-next.
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -202,7 +202,7 @@ class MockPlatformLocation {
|
|
|
202
202
|
}
|
|
203
203
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
204
204
|
minVersion: "12.0.0",
|
|
205
|
-
version: "21.2.0-next.
|
|
205
|
+
version: "21.2.0-next.1",
|
|
206
206
|
ngImport: i0,
|
|
207
207
|
type: MockPlatformLocation,
|
|
208
208
|
deps: [{
|
|
@@ -213,14 +213,14 @@ class MockPlatformLocation {
|
|
|
213
213
|
});
|
|
214
214
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
215
215
|
minVersion: "12.0.0",
|
|
216
|
-
version: "21.2.0-next.
|
|
216
|
+
version: "21.2.0-next.1",
|
|
217
217
|
ngImport: i0,
|
|
218
218
|
type: MockPlatformLocation
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
i0.ɵɵngDeclareClassMetadata({
|
|
222
222
|
minVersion: "12.0.0",
|
|
223
|
-
version: "21.2.0-next.
|
|
223
|
+
version: "21.2.0-next.1",
|
|
224
224
|
ngImport: i0,
|
|
225
225
|
type: MockPlatformLocation,
|
|
226
226
|
decorators: [{
|
|
@@ -300,7 +300,7 @@ class FakeNavigationPlatformLocation {
|
|
|
300
300
|
}
|
|
301
301
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
302
302
|
minVersion: "12.0.0",
|
|
303
|
-
version: "21.2.0-next.
|
|
303
|
+
version: "21.2.0-next.1",
|
|
304
304
|
ngImport: i0,
|
|
305
305
|
type: FakeNavigationPlatformLocation,
|
|
306
306
|
deps: [],
|
|
@@ -308,14 +308,14 @@ class FakeNavigationPlatformLocation {
|
|
|
308
308
|
});
|
|
309
309
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
310
310
|
minVersion: "12.0.0",
|
|
311
|
-
version: "21.2.0-next.
|
|
311
|
+
version: "21.2.0-next.1",
|
|
312
312
|
ngImport: i0,
|
|
313
313
|
type: FakeNavigationPlatformLocation
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
i0.ɵɵngDeclareClassMetadata({
|
|
317
317
|
minVersion: "12.0.0",
|
|
318
|
-
version: "21.2.0-next.
|
|
318
|
+
version: "21.2.0-next.1",
|
|
319
319
|
ngImport: i0,
|
|
320
320
|
type: FakeNavigationPlatformLocation,
|
|
321
321
|
decorators: [{
|
|
@@ -501,7 +501,7 @@ class SpyLocation {
|
|
|
501
501
|
}
|
|
502
502
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
503
503
|
minVersion: "12.0.0",
|
|
504
|
-
version: "21.2.0-next.
|
|
504
|
+
version: "21.2.0-next.1",
|
|
505
505
|
ngImport: i0,
|
|
506
506
|
type: SpyLocation,
|
|
507
507
|
deps: [],
|
|
@@ -509,14 +509,14 @@ class SpyLocation {
|
|
|
509
509
|
});
|
|
510
510
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
511
511
|
minVersion: "12.0.0",
|
|
512
|
-
version: "21.2.0-next.
|
|
512
|
+
version: "21.2.0-next.1",
|
|
513
513
|
ngImport: i0,
|
|
514
514
|
type: SpyLocation
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
i0.ɵɵngDeclareClassMetadata({
|
|
518
518
|
minVersion: "12.0.0",
|
|
519
|
-
version: "21.2.0-next.
|
|
519
|
+
version: "21.2.0-next.1",
|
|
520
520
|
ngImport: i0,
|
|
521
521
|
type: SpyLocation,
|
|
522
522
|
decorators: [{
|
|
@@ -597,7 +597,7 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
597
597
|
}
|
|
598
598
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
599
599
|
minVersion: "12.0.0",
|
|
600
|
-
version: "21.2.0-next.
|
|
600
|
+
version: "21.2.0-next.1",
|
|
601
601
|
ngImport: i0,
|
|
602
602
|
type: MockLocationStrategy,
|
|
603
603
|
deps: [],
|
|
@@ -605,14 +605,14 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
605
605
|
});
|
|
606
606
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
607
607
|
minVersion: "12.0.0",
|
|
608
|
-
version: "21.2.0-next.
|
|
608
|
+
version: "21.2.0-next.1",
|
|
609
609
|
ngImport: i0,
|
|
610
610
|
type: MockLocationStrategy
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
i0.ɵɵngDeclareClassMetadata({
|
|
614
614
|
minVersion: "12.0.0",
|
|
615
|
-
version: "21.2.0-next.
|
|
615
|
+
version: "21.2.0-next.1",
|
|
616
616
|
ngImport: i0,
|
|
617
617
|
type: MockLocationStrategy,
|
|
618
618
|
decorators: [{
|
package/fesm2022/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.0-next.
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -601,7 +601,7 @@ class LocationUpgradeModule {
|
|
|
601
601
|
}
|
|
602
602
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
603
603
|
minVersion: "12.0.0",
|
|
604
|
-
version: "21.2.0-next.
|
|
604
|
+
version: "21.2.0-next.1",
|
|
605
605
|
ngImport: i0,
|
|
606
606
|
type: LocationUpgradeModule,
|
|
607
607
|
deps: [],
|
|
@@ -609,14 +609,14 @@ class LocationUpgradeModule {
|
|
|
609
609
|
});
|
|
610
610
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
611
611
|
minVersion: "14.0.0",
|
|
612
|
-
version: "21.2.0-next.
|
|
612
|
+
version: "21.2.0-next.1",
|
|
613
613
|
ngImport: i0,
|
|
614
614
|
type: LocationUpgradeModule,
|
|
615
615
|
imports: [CommonModule]
|
|
616
616
|
});
|
|
617
617
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
618
618
|
minVersion: "12.0.0",
|
|
619
|
-
version: "21.2.0-next.
|
|
619
|
+
version: "21.2.0-next.1",
|
|
620
620
|
ngImport: i0,
|
|
621
621
|
type: LocationUpgradeModule,
|
|
622
622
|
imports: [CommonModule]
|
|
@@ -624,7 +624,7 @@ class LocationUpgradeModule {
|
|
|
624
624
|
}
|
|
625
625
|
i0.ɵɵngDeclareClassMetadata({
|
|
626
626
|
minVersion: "12.0.0",
|
|
627
|
-
version: "21.2.0-next.
|
|
627
|
+
version: "21.2.0-next.1",
|
|
628
628
|
ngImport: i0,
|
|
629
629
|
type: LocationUpgradeModule,
|
|
630
630
|
decorators: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "21.2.0-next.
|
|
3
|
+
"version": "21.2.0-next.1",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@angular/core": "21.2.0-next.
|
|
47
|
+
"@angular/core": "21.2.0-next.1",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.0-next.
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -87,6 +87,9 @@ declare const APP_BASE_HREF: InjectionToken<string>;
|
|
|
87
87
|
* the fragment in the `<base href>` will be preserved, as outlined
|
|
88
88
|
* by the [RFC](https://tools.ietf.org/html/rfc3986#section-5.2.2).
|
|
89
89
|
*
|
|
90
|
+
* To ensure that trailing slashes are always present or never present in the URL, use
|
|
91
|
+
* {@link TrailingSlashPathLocationStrategy} or {@link NoTrailingSlashPathLocationStrategy}.
|
|
92
|
+
*
|
|
90
93
|
* @usageNotes
|
|
91
94
|
*
|
|
92
95
|
* ### Example
|
|
@@ -115,6 +118,30 @@ declare class PathLocationStrategy extends LocationStrategy implements OnDestroy
|
|
|
115
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<PathLocationStrategy, [null, { optional: true; }]>;
|
|
116
119
|
static ɵprov: i0.ɵɵInjectableDeclaration<PathLocationStrategy>;
|
|
117
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* A `LocationStrategy` that ensures URLs never have a trailing slash.
|
|
123
|
+
* This strategy only affects the URL written to the browser.
|
|
124
|
+
* `Location.path()` and `Location.normalize()` will continue to strip trailing slashes when reading the URL.
|
|
125
|
+
*
|
|
126
|
+
* @publicApi
|
|
127
|
+
*/
|
|
128
|
+
declare class NoTrailingSlashPathLocationStrategy extends PathLocationStrategy {
|
|
129
|
+
prepareExternalUrl(internal: string): string;
|
|
130
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoTrailingSlashPathLocationStrategy, never>;
|
|
131
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NoTrailingSlashPathLocationStrategy>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* A `LocationStrategy` that ensures URLs always have a trailing slash.
|
|
135
|
+
* This strategy only affects the URL written to the browser.
|
|
136
|
+
* `Location.path()` and `Location.normalize()` will continue to strip trailing slashes when reading the URL.
|
|
137
|
+
*
|
|
138
|
+
* @publicApi
|
|
139
|
+
*/
|
|
140
|
+
declare class TrailingSlashPathLocationStrategy extends PathLocationStrategy {
|
|
141
|
+
prepareExternalUrl(internal: string): string;
|
|
142
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrailingSlashPathLocationStrategy, never>;
|
|
143
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TrailingSlashPathLocationStrategy>;
|
|
144
|
+
}
|
|
118
145
|
|
|
119
146
|
/** @publicApi */
|
|
120
147
|
interface PopStateEvent {
|
|
@@ -1983,5 +2010,5 @@ declare class CommonModule {
|
|
|
1983
2010
|
static ɵinj: i0.ɵɵInjectorDeclaration<CommonModule>;
|
|
1984
2011
|
}
|
|
1985
2012
|
|
|
1986
|
-
export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, PathLocationStrategy, PercentPipe, SlicePipe, TitleCasePipe, UpperCasePipe };
|
|
2013
|
+
export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValuePipe, Location, LocationStrategy, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NoTrailingSlashPathLocationStrategy, PathLocationStrategy, PercentPipe, SlicePipe, TitleCasePipe, TrailingSlashPathLocationStrategy, UpperCasePipe };
|
|
1987
2014
|
export type { DatePipeConfig, KeyValue, PopStateEvent };
|
package/types/_module-chunk.d.ts
CHANGED
package/types/_xhr-chunk.d.ts
CHANGED
package/types/common.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.0-next.
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { Location, LocationStrategy } from './_common_module-chunk.js';
|
|
8
|
-
export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DatePipeConfig, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValue, KeyValuePipe, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, PathLocationStrategy, PercentPipe, PopStateEvent, SlicePipe, TitleCasePipe, UpperCasePipe } from './_common_module-chunk.js';
|
|
8
|
+
export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DatePipeConfig, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValue, KeyValuePipe, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, NoTrailingSlashPathLocationStrategy, PathLocationStrategy, PercentPipe, PopStateEvent, SlicePipe, TitleCasePipe, TrailingSlashPathLocationStrategy, UpperCasePipe } from './_common_module-chunk.js';
|
|
9
9
|
import * as i0 from '@angular/core';
|
|
10
10
|
import { InjectionToken, ɵNavigation as _Navigation, ɵNavigationHistoryEntry as _NavigationHistoryEntry, ɵNavigationUpdateCurrentEntryOptions as _NavigationUpdateCurrentEntryOptions, ɵNavigationTransition as _NavigationTransition, ɵNavigationNavigateOptions as _NavigationNavigateOptions, ɵNavigationResult as _NavigationResult, ɵNavigationReloadOptions as _NavigationReloadOptions, ɵNavigationOptions as _NavigationOptions, ɵNavigateEvent as _NavigateEvent, ɵNavigationCurrentEntryChangeEvent as _NavigationCurrentEntryChangeEvent, OnDestroy, Version, Provider, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
11
11
|
export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG, ɵImageConfig as ImageConfig } from '@angular/core';
|
|
@@ -1036,11 +1036,9 @@ interface ImagePlaceholderConfig {
|
|
|
1036
1036
|
* - Warns if the image will be visually distorted when rendered
|
|
1037
1037
|
*
|
|
1038
1038
|
* @usageNotes
|
|
1039
|
-
* The `NgOptimizedImage` directive is marked as [standalone](guide/components/importing) and can
|
|
1040
|
-
* be imported directly.
|
|
1041
1039
|
*
|
|
1042
1040
|
* Follow the steps below to enable and use the directive:
|
|
1043
|
-
* 1. Import it into
|
|
1041
|
+
* 1. Import it into a Component.
|
|
1044
1042
|
* 2. Optionally provide an `ImageLoader` if you use an image hosting service.
|
|
1045
1043
|
* 3. Update the necessary `<img>` tags in templates and replace `src` attributes with `ngSrc`.
|
|
1046
1044
|
* Using a `ngSrc` allows the directive to control when the `src` gets set, which triggers an image
|
|
@@ -1049,19 +1047,10 @@ interface ImagePlaceholderConfig {
|
|
|
1049
1047
|
* Step 1: import the `NgOptimizedImage` directive.
|
|
1050
1048
|
*
|
|
1051
1049
|
* ```ts
|
|
1052
|
-
* import { NgOptimizedImage } from '@angular/common';
|
|
1053
|
-
*
|
|
1054
|
-
* // Include it into the necessary NgModule
|
|
1055
|
-
* @NgModule({
|
|
1056
|
-
* imports: [NgOptimizedImage],
|
|
1057
|
-
* })
|
|
1058
|
-
* class AppModule {}
|
|
1059
|
-
*
|
|
1060
|
-
* // ... or a standalone Component
|
|
1061
1050
|
* @Component({
|
|
1062
1051
|
* imports: [NgOptimizedImage],
|
|
1063
1052
|
* })
|
|
1064
|
-
* class
|
|
1053
|
+
* class MyPage {}
|
|
1065
1054
|
* ```
|
|
1066
1055
|
*
|
|
1067
1056
|
* Step 2: configure a loader.
|
package/types/http-testing.d.ts
CHANGED
package/types/http.d.ts
CHANGED
package/types/testing.d.ts
CHANGED
package/types/upgrade.d.ts
CHANGED