attributeChangedCallback(name, oldVal, newVal) {
        if (oldVal !== newVal) {
            switch(name) {
                case 'milliseconds':
                    this.milliseconds = newVal
                    break;
                case 'seconds':
                    this.seconds = newVal
                    break;
                case 'minutes':
                    this.minutes = newVal
                    break;
                case 'hours':
                    this.hours = newVal
                    break;
                case 'days':
                    this.days = newVal
                    break;
                case 'show-milliseconds':
                    this.showMilliseconds = newVal
                    break;
                case 'show-hours':
                    this.showHours = newVal
                    break;
                case 'show-days':
                    this.showDays = 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 'milliseconds':
                    this.milliseconds = newVal
                    break;
                case 'seconds':
                    this.seconds = newVal
                    break;
                case 'minutes':
                    this.minutes = newVal
                    break;
                case 'hours':
                    this.hours = newVal
                    break;
                case 'days':
                    this.days = newVal
                    break;
                case 'show-milliseconds':
                    this.showMilliseconds = newVal
                    break;
                case 'show-hours':
                    this.showHours = newVal
                    break;
                case 'show-days':
                    this.showDays = newVal
                    break;
            }
        }
    }
attributeChangedCallback ( name , oldVal , newVal ) { if ( oldVal !== newVal ) { switch ( name ) { case 'milliseconds' : this . milliseconds = newVal break ; case 'seconds' : this . seconds = newVal break ; case 'minutes' : this . minutes = newVal break ; case 'hours' : this . hours = newVal break ; case 'days' : this . days = newVal break ; case 'show-milliseconds' : this . showMilliseconds = newVal break ; case 'show-hours' : this . showHours = newVal break ; case 'show-days' : this . showDays = newVal break ; } } }
To do when a attribute changed
To do when a attribute changed