Since you are binding the image source the a single input
<img [src]="img.url">
All items in the list will be binded to the same image.
I'll suggest to create a seperate array of images for each question,
Or add new attribute for each item and the bind to item.imgUrl
<ng-container *ngFor="let item of questions2; let i = index">
<img [src]="item.imgUrl">
fileChangeEvent($event,'sample', i)
and in the component.ts
fileChangeEvent(event: any, keyName, index): void {
this.questions2[index].imgUrl = this.images[...];
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…