You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the discussions / patterns being discussed #177 , one thing that seemed valuable now to we are making it so that users can do this without having to manually insert a <template> tag
// beforethis.attachShadow({mode: 'open'});this.shadowRoot.innerHTML=` <template shadowrootmode="open"> <header> <h1>Welcome to my site!</h1> </header> </template>`;
// afterthis.attachShadow({mode: 'open'});this.shadowRoot.innerHTML=` <header> <h1>Welcome to my site!</h1> </header>`;
Details
So somewhere we should
compliment our examples that use this.shadowRoot.appendChild(template.content.cloneNode(true)); with shadowRoot.innerHTML
Type of Change
Documentation
Summary
As part of the discussions / patterns being discussed #177 , one thing that seemed valuable now to we are making it so that users can do this without having to manually insert a
<template>
tagDetails
So somewhere we should
this.shadowRoot.appendChild(template.content.cloneNode(true));
withshadowRoot.innerHTML
innerHTML
(no shadow root) - https://merry-caramel-524e61.netlify.app/examples/#server-rendering-ssrThe text was updated successfully, but these errors were encountered: