@angular/core 12.0.3 → 12.0.4
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/bundles/core-testing.umd.js +1 -1
- package/bundles/core.umd.js +9 -2
- package/bundles/core.umd.js.map +1 -1
- package/core.d.ts +52 -3
- package/core.metadata.json +1 -1
- package/esm2015/src/change_detection/differs/iterable_differs.js +1 -1
- package/esm2015/src/linker/component_factory_resolver.js +4 -1
- package/esm2015/src/metadata/di.js +1 -1
- package/esm2015/src/metadata/ng_module.js +1 -1
- package/esm2015/src/metadata/schema.js +5 -1
- package/esm2015/src/version.js +1 -1
- package/fesm2015/core.js +9 -2
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/testing.js +1 -1
- package/package.json +1 -1
- package/src/r3_symbols.d.ts +4 -1
- package/testing/testing.d.ts +1 -1
- package/testing.d.ts +1 -1
package/core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v12.0.
|
|
2
|
+
* @license Angular v12.0.4
|
|
3
3
|
* (c) 2010-2021 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1153,6 +1153,9 @@ export { ComponentFactory as ɵComponentFactory }
|
|
|
1153
1153
|
* then use the factory's `create()` method to create a component of that type.
|
|
1154
1154
|
*
|
|
1155
1155
|
* @see [Dynamic Components](guide/dynamic-component-loader)
|
|
1156
|
+
* @see [Usage Example](guide/dynamic-component-loader#resolving-components)
|
|
1157
|
+
* @see <live-example name="dynamic-component-loader" noDownload></live-example>
|
|
1158
|
+
of the code in this cookbook
|
|
1156
1159
|
* @publicApi
|
|
1157
1160
|
*/
|
|
1158
1161
|
export declare abstract class ComponentFactoryResolver {
|
|
@@ -1318,6 +1321,17 @@ export declare interface ContentChildDecorator {
|
|
|
1318
1321
|
* * **static** - True to resolve query results before change detection runs,
|
|
1319
1322
|
* false to resolve after change detection. Defaults to false.
|
|
1320
1323
|
*
|
|
1324
|
+
* The following selectors are supported.
|
|
1325
|
+
* * Any class with the `@Component` or `@Directive` decorator
|
|
1326
|
+
* * A template reference variable as a string (e.g. query `<my-component #cmp></my-component>`
|
|
1327
|
+
* with `@ContentChild('cmp')`)
|
|
1328
|
+
* * Any provider defined in the child component tree of the current component (e.g.
|
|
1329
|
+
* `@ContentChild(SomeService) someService: SomeService`)
|
|
1330
|
+
* * Any provider defined through a string token (e.g. `@ContentChild('someToken') someTokenVal:
|
|
1331
|
+
* any`)
|
|
1332
|
+
* * A `TemplateRef` (e.g. query `<ng-template></ng-template>` with `@ContentChild(TemplateRef)
|
|
1333
|
+
* template;`)
|
|
1334
|
+
*
|
|
1321
1335
|
* The following values are supported by `read`:
|
|
1322
1336
|
* * Any class with the `@Component` or `@Directive` decorator
|
|
1323
1337
|
* * Any provider defined on the injector of the component that is matched by the `selector` of
|
|
@@ -1394,6 +1408,20 @@ export declare interface ContentChildrenDecorator {
|
|
|
1394
1408
|
* removed in future versions of Angular.
|
|
1395
1409
|
* * **read** - Used to read a different token from the queried elements.
|
|
1396
1410
|
*
|
|
1411
|
+
* The following selectors are supported.
|
|
1412
|
+
* * Any class with the `@Component` or `@Directive` decorator
|
|
1413
|
+
* * A template reference variable as a string (e.g. query `<my-component #cmp></my-component>`
|
|
1414
|
+
* with `@ContentChildren('cmp')`)
|
|
1415
|
+
* * Any provider defined in the child component tree of the current component (e.g.
|
|
1416
|
+
* `@ContentChildren(SomeService) someService: SomeService`)
|
|
1417
|
+
* * Any provider defined through a string token (e.g. `@ContentChildren('someToken')
|
|
1418
|
+
* someTokenVal: any`)
|
|
1419
|
+
* * A `TemplateRef` (e.g. query `<ng-template></ng-template>` with
|
|
1420
|
+
* `@ContentChildren(TemplateRef) template;`)
|
|
1421
|
+
*
|
|
1422
|
+
* In addition, multiple string selectors can be separated with a comma (e.g.
|
|
1423
|
+
* `@ContentChildren('cmp1,cmp2')`)
|
|
1424
|
+
*
|
|
1397
1425
|
* The following values are supported by `read`:
|
|
1398
1426
|
* * Any class with the `@Component` or `@Directive` decorator
|
|
1399
1427
|
* * Any provider defined on the injector of the component that is matched by the `selector` of
|
|
@@ -4630,7 +4658,10 @@ export declare interface NgModule {
|
|
|
4630
4658
|
* using one of the imperative techniques, such as `ViewContainerRef.createComponent()`.
|
|
4631
4659
|
*
|
|
4632
4660
|
* @see [Entry Components](guide/entry-components)
|
|
4633
|
-
* @deprecated
|
|
4661
|
+
* @deprecated
|
|
4662
|
+
* Since 9.0.0. With Ivy, this property is no longer necessary.
|
|
4663
|
+
* (You may need to keep these if building a library that will be consumed by a View Engine
|
|
4664
|
+
* application.)
|
|
4634
4665
|
*/
|
|
4635
4666
|
entryComponents?: Array<Type<any> | any[]>;
|
|
4636
4667
|
/**
|
|
@@ -4923,6 +4954,10 @@ export declare class NgZone {
|
|
|
4923
4954
|
/**
|
|
4924
4955
|
* Defines a schema that allows any property on any element.
|
|
4925
4956
|
*
|
|
4957
|
+
* This schema allows you to ignore the errors related to any unknown elements or properties in a
|
|
4958
|
+
* template. The usage of this schema is generally discouraged because it prevents useful validation
|
|
4959
|
+
* and may hide real errors in your template. Consider using the `CUSTOM_ELEMENTS_SCHEMA` instead.
|
|
4960
|
+
*
|
|
4926
4961
|
* @publicApi
|
|
4927
4962
|
*/
|
|
4928
4963
|
export declare const NO_ERRORS_SCHEMA: SchemaMetadata;
|
|
@@ -8008,7 +8043,7 @@ export declare interface TrackByFunction<T> {
|
|
|
8008
8043
|
* @param index The index of the item within the iterable.
|
|
8009
8044
|
* @param item The item in the iterable.
|
|
8010
8045
|
*/
|
|
8011
|
-
(index: number, item:
|
|
8046
|
+
<U extends T>(index: number, item: U): any;
|
|
8012
8047
|
}
|
|
8013
8048
|
|
|
8014
8049
|
/**
|
|
@@ -8720,6 +8755,20 @@ export declare interface ViewChildrenDecorator {
|
|
|
8720
8755
|
* ** Note: *** This config option is **deprecated**, it will be permanently set to `true` and
|
|
8721
8756
|
* removed in future versions of Angular.
|
|
8722
8757
|
*
|
|
8758
|
+
* The following selectors are supported.
|
|
8759
|
+
* * Any class with the `@Component` or `@Directive` decorator
|
|
8760
|
+
* * A template reference variable as a string (e.g. query `<my-component #cmp></my-component>`
|
|
8761
|
+
* with `@ViewChildren('cmp')`)
|
|
8762
|
+
* * Any provider defined in the child component tree of the current component (e.g.
|
|
8763
|
+
* `@ViewChildren(SomeService) someService: SomeService`)
|
|
8764
|
+
* * Any provider defined through a string token (e.g. `@ViewChildren('someToken') someTokenVal:
|
|
8765
|
+
* any`)
|
|
8766
|
+
* * A `TemplateRef` (e.g. query `<ng-template></ng-template>` with `@ViewChildren(TemplateRef)
|
|
8767
|
+
* template;`)
|
|
8768
|
+
*
|
|
8769
|
+
* In addition, multiple string selectors can be separated with a comma (e.g.
|
|
8770
|
+
* `@ViewChildren('cmp1,cmp2')`)
|
|
8771
|
+
*
|
|
8723
8772
|
* The following values are supported by `read`:
|
|
8724
8773
|
* * Any class with the `@Component` or `@Directive` decorator
|
|
8725
8774
|
* * Any provider defined on the injector of the component that is matched by the `selector` of
|