SyntaxFix
Write A Post
Hire A Developer
Questions
This worked for me in angular:
var a = document.createElement("a"); a.href = 'fileURL'; a.download = 'fileName'; a.click();