Cara menambahkan variabel dengan tautan jangkar elemen href di angularjs

const downloadFile = (fileName,id) => `<a href="https://downloadFile?fileName=${fileName}&id=${encodeURIComponent(id)}"></a>`

console.log(downloadFile("THEFILE","THEID"));
SAMER SAEID