Use ViewChildren to get the QueryList of elements or directives from the view DOM
In many cases you have used the ViewChild decorator to get the first component matching the selector from the view DOM.
What about if you should keep reference to your components that you initialise dynamically over iterations?
In that case, you can use ViewChildren decorator to get the QueryList of elements or directives from the view DOM. Any time a child element is added, removed, or moved, the query list will be updated, and the changes observable of the query list will emit a new value.