From 035036308ade83fd440285fe1cdf68aa6e18e58c Mon Sep 17 00:00:00 2001 From: Tiep Phan Date: Wed, 17 Jun 2020 22:35:14 +0700 Subject: [PATCH] docs(core): correct type for opts.read (#37626) The ContentChildren decorator has a metadata property named "read" which can be used to read a different token from the queried elements. The documentation incorrectly says "True to read..." when it should say "Used to read...". PR Close #37626 --- packages/core/src/metadata/di.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/core/src/metadata/di.ts b/packages/core/src/metadata/di.ts index bb8f5cd4bd..0e42601ffe 100644 --- a/packages/core/src/metadata/di.ts +++ b/packages/core/src/metadata/di.ts @@ -140,7 +140,7 @@ export interface ContentChildrenDecorator { * * * **selector** - The directive type or the name used for querying. * * **descendants** - True to include all descendants, otherwise include only direct children. - * * **read** - True to read a different token from the queried elements. + * * **read** - Used to read a different token from the queried elements. * * @usageNotes * @@ -204,7 +204,7 @@ export interface ContentChildDecorator { * **Metadata Properties**: * * * **selector** - The directive type or the name used for querying. - * * **read** - True to read a different token from the queried element. + * * **read** - Used to read a different token from the queried element. * * **static** - True to resolve query results before change detection runs, * false to resolve after change detection. Defaults to false. * @@ -263,7 +263,7 @@ export interface ViewChildrenDecorator { * **Metadata Properties**: * * * **selector** - The directive type or the name used for querying. - * * **read** - True to read a different token from the queried elements. + * * **read** - Used to read a different token from the queried elements. * * @usageNotes * @@ -317,7 +317,7 @@ export interface ViewChildDecorator { * **Metadata Properties**: * * * **selector** - The directive type or the name used for querying. - * * **read** - True to read a different token from the queried elements. + * * **read** - Used to read a different token from the queried elements. * * **static** - True to resolve query results before change detection runs, * false to resolve after change detection. Defaults to false. *