downloadByURL(url: string) {
const link = document.createElement('a')
link.download = 'result.txt'
link.href = url
link.click()
}
downloadByURL('File URL')
You need to login in order to like this post: click here
YOU MIGHT ALSO LIKE