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:
parent
14ae50b4c3
commit
4da805243a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue