Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

How to append variable with anchor element href link in Angularjs

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

console.log(downloadFile("THEFILE","THEID"));
 
PREVIOUS NEXT
Tagged: #How #append #variable #anchor #element #href #link #Angularjs
ADD COMMENT
Topic
Name
2+2 =