[Vuejs]-Vue 2 if countdown timer hits zero hide whole component

0👍

mounted: function() {
  setInterval(() => {
    this.now = Math.trunc(new Date().getTime() / 1000);
    this.expired = this.modifiedDate <= this.now;
  }, 1000);
}

Leave a comment