diff --git a/index.html b/index.html index ac7563e..e37e70f 100644 --- a/index.html +++ b/index.html @@ -58,12 +58,14 @@ Un-Checked Disabled Checked Disabled - LONG LIVE W-COMPONENTS! - LONG LIVE W-COMPONENTS! - LONG LIVE W-COMPONENTS! - LONG LIVE W-COMPONENTS! - LONG LIVE W-COMPONENTS! - LONG LIVE W-COMPONENTS! + Main Content diff --git a/wc/components/spa/SPAPage.js b/wc/components/spa/SPAPage.js index 9b57cce..657a9b8 100644 --- a/wc/components/spa/SPAPage.js +++ b/wc/components/spa/SPAPage.js @@ -47,6 +47,11 @@ class SPAPage extends WComponent{ className:this.current?"show":"hide" }; if(this.root){ + const template=this.querySelector("template"); + if(template!==null){ + this.appendChild(template.content.cloneNode(true)); + template.remove(); + } DOM.modify(this.root, {props: props}); }else{ this.root=DOM.create("slot", {props: props}, this.shadowRoot);