A simple countdown timer component for VueJS 2.
npm i countdown-vue --save
<template>
<div>
<Countdown end="August 22, 2022" showDays showHours showMinutes showSeconds></Countdown>
or
<Countdown end="2018-03-16T00:42:24.000Z" showDays showHours showMinutes showSeconds></Countdown>
</div>
</template>
<script>
import Countdown from 'vuejs-countdown'
export default {
components: { Countdown }
}
</script>
You can stop the countdown timer anytime by passing back stop
props.