loading...

re: Timer Component for Vue.js VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Hi Rachel, Have envisaged to use a computed property to format the currentTime in the template? As a detail, personally I would use a setInterval ...
 

Thanks for the suggestion Stefan! It never occurred to me; it's certainly a more vue approach!

I've added a second codepen with the code refactored into computed methods. I think it's much easier to read now. Thank you for the suggestion!

code of conduct - report abuse