I wanted to download file, I am new in angular, so I can't understand what do I do
<img src="assets/images/download.png" alt="IMG-LOGO" height="20" width="20" (click)="getfile(product.product_id)">
and in ts file I wrote function for api call
getfile(id){
this.filter.productid = id;
this.apiService.getfile(this.filter).subscribe((data: Array<object>) => {
this.fileUrl = data;
console.log(data);
});
}