Slide 90
Slide 90 text
// Attaches a shadow Root to your element
const shadowRoot = this.attachShadow({mode: 'open'});
// Get the custom template, clone it
const template = document.querySelector('#o-gallery');
const clone = this.importNode(template, true);
// Insert it into our shadow DOM
shadowRoot.appendChild(clone);