app/elements/date-widget/index.js
// Fires when an instance of the element is created.
Fires when an instance of the element is created.
Fires when an instance of the element is created .
createdCallback() {
            var self = this;
            if (!this.dataset.store) {
                console.error("need a vm");
            }
            if (!window[this.dataset.store]) {
                console.error("need a vm");
            }
            self.store = window[this.dataset.store];
            console.dir(this.store);
            this.innerHTML = `
                <div class="container" zl-datawidget>
                    ${self.store.now / 10000}
                </div>
            `;
        }
createdCallback ( ) { var self = this ; if ( ! this . dataset . store ) { console . error ( "need a vm" ) ; } if ( ! window [ this . dataset . store ] ) { console . error ( "need a vm" ) ; } self . store = window [ this . dataset . store ] ; console . dir ( this . store ) ; this . innerHTML = ` ${ self . store . now / 10000 } ` ; }
Fires when an instance of the element is created.
Fires when an instance of the element is created .