Tag <a> with download


#1

Hi, I tried this code:

<a ng-href="file.pdf" download>Download PDF</a>

to download a pdf file in an ionic app, but it doesn’t work.
(The file.pdf is in www folder)
Can you help me?
Thank you.


#2

//Using this opening technique:
a(href=’#’, onclick=“window.open(‘http://www.downloadpdf.com’, ‘_system’);”) www.downloadpdf.com


#3

Thank you sharthan for your answer