How can I get children elements from QueryList in Angular 2?
问题 I am newbie at Angular2. In my view I have few identical children that are generated in *ngFor. <ngb-panel *ngFor="let client of clients" [title]="'Client #' + client.id"> <template ngbPanelContent> <processing-item [client]="client"></processing-item> </template> </ngb-panel> I need to call methods of these components at parent element and find out the ViewChildren decorator and the code is: @ViewChildren(ProcessingItemComponent) processingItems: QueryList<ProcessingItemComponent>; Then I