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);
- [Vuejs]-What could be causing my Vue.js fetch API code to not display fake users as expected?
- [Vuejs]-Vue3 / Nuxt3 – how to use props directly in setup
Source:stackexchange.com