I am trying to reset selected file with input tag file type in Angular 9/10,i googled and found the solution,but its not working though

前端 未结 0 452
挽巷
挽巷 2020-12-04 18:53

component.ts

  @ViewChild("editphoto",{static:false}) editphoto: ElementRef;

removePhoto(){

this.editphoto.nativeElement.value =          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题