-
Notifications
You must be signed in to change notification settings - Fork 25.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ViewChildren and ViewChild are searching for child / children only #11039
Comments
|
@michaelchiche export interface ViewChildrenMetadataFactory { |
Sorry, got confused with ContentChildren. |
@michaelchiche |
export class ViewChildrenMetadata extends ViewQueryMetadata { |
Probably related (note the "probably") #5241 (comment) |
It is the same issue. |
duplicate |
This issue was for @ViewChildren, the linked issue was for @ContentChildren resolution of the linked issue was: (my use case is to find all the elements that have a 'scroll-on-click' directive on them so I can auto scroll the form to ensure focussed fields are not obscured) |
What is this duplicate of? Google search on this topic shows this issue only. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm submitting a ... (check one with "x")
Current behavior
ViewChildren and ViewChild are searching for child / children only,
Expected/desired behavior
They should search for descendents also.
Reproduction of the problem
steps for reproduce:
Lets say you have component1 that declare component2 inside of it,
and component2 declare component3 inside of itself.
component1 can't use ViewChildren to get component3.
What is the expected behavior?
I would expect component1 to find component3
What is the motivation / use case for changing the behavior?
I want to find descendents of specific type and not only children
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: