Created
February 5, 2020 05:46
-
-
Save joehonton/b62e3399b53acb315edd91a4a1f52002 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async connectedCallback() { | |
var htmlFragment = await this.fetchTemplate(); | |
var styleElement = await this.fetchCSS(); | |
this.attachShadow({mode: 'open'}); | |
this.shadowRoot.appendChild(htmlFragment); | |
this.shadowRoot.appendChild(styleElement); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment