From 1d844b9bd8140953487f291e352ff55656154b41 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 5de1bdf118..3b14ec3163 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 * @@ -206,7 +206,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. * @@ -267,7 +267,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 * @@ -322,7 +322,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. *