From 94b9b7e1548b0973f2930fef335ff9d8cef7545a Mon Sep 17 00:00:00 2001 From: cexbrayat Date: Fri, 4 Oct 2019 09:26:59 +0200 Subject: [PATCH] docs(core): update static flag documentation (#32993) Followup to #32720 that removed the logic that statically determines whether a query is dynamic. This updates the docs to reflect that, and mentions that the flag now defaults to false. PR Close #32993 --- packages/core/src/metadata/di.ts | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/packages/core/src/metadata/di.ts b/packages/core/src/metadata/di.ts index b82ff87fb6..e5a2c2286d 100644 --- a/packages/core/src/metadata/di.ts +++ b/packages/core/src/metadata/di.ts @@ -205,12 +205,7 @@ export interface ContentChildDecorator { * * **selector** - The directive type or the name used for querying. * * **read** - True 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. - * - * When `static` is not provided, uses the query results to determine the timing of query - * resolution. If any query results are inside a nested view (such as `*ngIf`), the query is - * resolved after change detection runs. Otherwise, it is resolved before change detection - * runs. + * false to resolve after change detection. Defaults to false. * * @usageNotes * @@ -320,12 +315,9 @@ export interface ViewChildDecorator { * * * **selector** - The directive type or the name used for querying. * * **read** - True to read a different token from the queried elements. - * * **static** - True to resolve query results before change detection runs + * * **static** - True to resolve query results before change detection runs, + * false to resolve after change detection. Defaults to false. * - * When `static` is not provided, uses query results to determine the timing of query - * resolution. If any query results are inside a nested view (such as `*ngIf`), the query is - * resolved after change detection runs. Otherwise, it is resolved before change detection - * runs. * * The following selectors are supported. * * Any class with the `@Component` or `@Directive` decorator