我想要在一个组件的一个ng之后访问所有的viewChildren,例如:
<component #item *ngFor="let item of items" [parameter1]="item.parameter1" [parameter2]="item.parameter2"></component>现在,我有一个这样的ViewChildren:
@ViewChildren('item') item: QueryList<Item>但当我console.log他时,它只出现一个,我希望有每一个ngFor的参考
https://stackoverflow.com/questions/47461819
复制相似问题