moringaman
12/12/2018 - 12:37 AM

vanilla webcomponent

class myComponent extends HTMLElement {
    constuctor() {
        super();

        this.attachShadow({mode: 'open})
        this.shadowRoot.innerHTML = `
                                    <style>
                                    </style>
                                    <div>
                                    </div>
        `
    }

    connectedCallback () {

    }

    attributeChangedCallback(name, oldValue, newValue)

    static get ObservedAttributes {
        return []
    }
}