我从服务器获取pdf网址通过使用url,我正在下载pdf
downloadAgreement(applicationData: any): void {
const link = document.createElement('a');
link.setAttribute('target', '_blank');
link.setAttribute('href', 'applicationData.lagFileLocation');
console.log(applicationData.lagFileLocation);
link.setAttribute('download.pdf');
document.body.appendChild(link);
link.click();
link.remove();
}