app/assets/js/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 .
function 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 = "\n                <div class=\"container\" zl-datawidget>\n                    " + self.store.now / 10000 + "\n                </div>\n            ";
            }
function 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 = "\n                <div class=\"container\" zl-datawidget>\n                    " + self . store . now / 10000 + "\n                </div>\n            " ; }
Fires when an instance of the element is created.
Fires when an instance of the element is created .