-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: queriesdesign complexity: low-hangingfeatureIssue that requests a new featureIssue that requests a new feature
Milestone
Description
🚀 feature request
Relevant Package
@angular/core
Description
Similar but opposite to how the ContentChildren decorator has descendants option to query all descendants, I would like ContentChild to have an option to query only direct descendants.
Describe the solution you'd like
- Add
descendantsas a metadata property forContentChild - If
descendantsis true or undefined, query all descendants (preserves current behavior) - If
descendantsis false, query only direct descendants
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: queriesdesign complexity: low-hangingfeatureIssue that requests a new featureIssue that requests a new feature