I used below code to download file using Angular. But I need to download that file without using npm file saver.. Is it possible for Angular file downloading? Can I download a file without using npm file saver in angular?
saveAsPDF() {
this.http.get("/Home/SavePDF", { responseType: 'blob' }).subscribe(blob => {
saveAs(blob, 'Test.pdf', {
type: 'text/plain;
});
console.log("success")
},
error => {
console.log("error")
});}