Closed ankar71 closed 3 years ago
Thanks for your response. I found where the problem is after looking at your code. In the uce file, I had my component inside a <template is="uce-template> tag (similarly to vue). You could blame me, but I saw nowhere that I have to remove the template tag when I move the element in a separate file (I could not know how parse works). BTW, did you check this?
I saw nowhere that I have to remove the template tag when I move the element in a separate file
Yeah, the documentation is very sketchy at this point, and there is already an issue to improve that, but it takes time.
However, it was mentioned in the medium post.
The reason external components don't require the <template>
around is that you can actually open these in a browser and check their appearance right away without needing even the library, but it's also aligned with how Vue or Svelte components are defined.
BTW, did you check this?
nope, super interesting, and I think I should create a community related projects section somewhere 👍
P.S. the issue for the documentation https://github.com/WebReflection/uce-template/issues/8
I use the following code in my html file:
appendChild fails with the error: