-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Looking at your tests as examples for using the code and ran into an issue with templates. From your tests is seems that providing the "true" arg to a template should cause it to render automatically, however in practice this leads to a recursion error being raised. Using code from your basic test case, registering it, and using it in an html file:
var component1 = xtag.create(class extends XTagElement {
'::template(true)'(){
return `<h1>title auto 1</h1><p>content auto 1</p>`;
}
});
xtag.register('x-component1', component1);
--
<x-component1></x-component1>
Raises this issue in the js console.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels