Skip to content

Instantly share code, notes, and snippets.

@dalaidunc
Created October 31, 2018 18:32
Show Gist options
  • Save dalaidunc/82cc599ab3fc7af5eb012b03d18dd269 to your computer and use it in GitHub Desktop.
Save dalaidunc/82cc599ab3fc7af5eb012b03d18dd269 to your computer and use it in GitHub Desktop.
class SocialStats extends HTMLElement {
constructor() {
super();
this.shadow = this.attachShadow({ mode: 'open' });
}
connectedCallback() {
this.css = getDefaultStyle();
this.template = getDefaultTemplate();
this.shadow.appendChild(this.css);
this.shadow.appendChild(this.template);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment