🚀 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
descendants as a metadata property for ContentChild
- If
descendants is true or undefined, query all descendants (preserves current behavior)
- If
descendants is false, query only direct descendants
🚀 feature request
Relevant Package
@angular/core
Description
Similar but opposite to how the
ContentChildrendecorator has descendants option to query all descendants, I would likeContentChildto have an option to query only direct descendants.Describe the solution you'd like
descendantsas a metadata property forContentChilddescendantsis true or undefined, query all descendants (preserves current behavior)descendantsis false, query only direct descendants