Skip to main content

One doc tagged with "ViewChildren"

View All Tags

ViewChildren Decorator

The @ViewChildren decorator in Angular is a query that allows you to access a list of elements or directives from the view DOM. Unlike @ViewChild, which only gives you access to a single child element or directive, @ViewChildren grants access to all child elements or directives that match a given selector. This is particularly useful when you need to interact with multiple child components or elements of the same type.