docs(core): clarify @ContentChild(ren) behavior (#31846)

Describe that @ContentChild(ren) doesn't search within other component templates (doesn't go across "component boundaries").
PR Close #31846
This commit is contained in:
Erik Pintar 2019-07-25 17:00:30 -04:00 committed by Andrew Kushnir
parent 14ae50b4c3
commit 4da805243a
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,9 @@ export interface ContentChildrenDecorator {
*
* Content queries are set before the `ngAfterContentInit` callback is called.
*
* Does not retrieve elements or directives that are in other components' templates,
* since a component's template is always a black box to its ancestors.
*
* **Metadata Properties**:
*
* * **selector** - The directive type or the name used for querying.
@ -194,6 +197,9 @@ export interface ContentChildDecorator {
*
* Content queries are set before the `ngAfterContentInit` callback is called.
*
* Does not retrieve elements or directives that are in other components' templates,
* since a component's template is always a black box to its ancestors.
*
* **Metadata Properties**:
*
* * **selector** - The directive type or the name used for querying.