[Vuejs]-Render CustomElements dynamically

0👍

Okay, I got it. The problem was the order of assigning the data attribute to the element. I just had to switch these elements like:

existing[0].setAttribute("data", JSON.stringify(props));
document.body.appendChild(tag);

Leave a comment