attributeChangedCallback(name, oldVal, newVal) {
        if (oldVal !== newVal) {
            switch(name) {
                case 'data':
                    this.data = newVal;
                    break;
                case 'display-limit':
                    this.displayLimit = newVal;
                    break;
            }
        }
    }
// To do when a attribute changed
To do when a attribute changed
To do when a attribute changed
attributeChangedCallback(name, oldVal, newVal) {
        if (oldVal !== newVal) {
            switch(name) {
                case 'data':
                    this.data = newVal;
                    break;
                case 'display-limit':
                    this.displayLimit = newVal;
                    break;
            }
        }
    }
attributeChangedCallback ( name , oldVal , newVal ) { if ( oldVal !== newVal ) { switch ( name ) { case 'data' : this . data = newVal ; break ; case 'display-limit' : this . displayLimit = newVal ; break ; } } }
To do when a attribute changed
To do when a attribute changed