Angular : How to Add/Remove Files in the Angular?

前端 未结 5 1552
旧巷少年郎
旧巷少年郎 2021-01-18 10:11

Here i choose multiple images and shows using *ngFor And there I have placed a delete button which is appear in the screenshot, click on delete button i want to

5条回答
  •  难免孤独
    2021-01-18 10:40

    You should remove it from a selectedFile array.

    this.selectedFile.splice(index, 1);
    

提交回复
热议问题