Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

download file on button click in angular 8

let link = document.createElement('a');
link.setAttribute('type', 'hidden');
link.href = 'abc.net/files/test.ino';
link.download = path;
document.body.appendChild(link);
link.click();
link.remove();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #download #file #button #click #angular
ADD COMMENT
Topic
Name
4+3 =