I have an array, it needs to be output to html. Right now I can only use template strings. How should I do it?
I tried to withdraw in this way, but I did not succeed. I need to know how to display similar arrays in html using template strings
balloonTemplate(val) {
console.log(val);
return `
<div class="ballon-body">
${val.PHONE.map((p) => {
`<a href="tel:${p}">${p}</a>`
})}
</div>
`;
},
