I am attempting to create a functionality where the text box will replace the timer when it reaches 0, and then the timer will be hidden. I am seeking a straightforward solution using either the 'v-show' or 'destroy' property in vue.js.
mounted () {
this.interval = setInterval(() => {
if (this.value === 0) {
return (this.value = 3)
}
this.value += -1
}, 1000)
}
You can find the code snippet at the following link: https://codepen.io/prasanna_sri/pen/rdravJ