Closed bhutiyaDilip closed 6 years ago
i got the solutions for this. it's working well for me.
<button class="btn" (click)="clear()">Cancle</button>
clear( ) {
let defaultValue: any = '';
const controlPic = <FormArray>this.myForm.controls['profile_picture'];
controlPic.setValue( defaultValue );
}
thanks.
when i select the same image form file upload than it's not working. and if i put the click event ested of change than its give me a erroe for file Reader
can you please suggest me?