Here I have one image and click on that image It opens menu, In menu one download option, click on download button I want to download this image how it is possible ? (imageUrl is in below code console). when i click on download I want to open save as and download image in my PC
HTML
<mat-menu #contextMenu="matMenu">
<ng-template matMenuContent let-item="item">
<button mat-menu-item (click)="downloadFile(item)">Download</button>
<button mat-menu-item>Delete</button>
<button mat-menu-item>Rename</button>
</ng-template>
</mat-menu>
TS
folderObj : Folder = new Folder();
downloadFile(item) {
this.folderObj.folderName = `${this.commonUrlObj.commonUrl}/${item.urloffolder}/${item.imageName}`;
console.log(this.folderObj.folderName); // http://127.0.0.1:3000/122/122/733/15.jpg (this is imageUrl)
}