Currently, I am working on a vuejs page and I am looking to incorporate a countdown timer that counts down from 5 minutes (e.g. 5:00, 4:59, and so on). Although I have never used momentjs before, I have gone through the moment docs but I am finding it challenging to understand the implementation process. Any assistance from someone experienced in using momentjs would be greatly appreciated as I am still in the learning phase.
<template>
<div>{{ time }}</div>
</template>
<script>
var moment = require("moment");
export default {
data() {
return {
time: "",
};
},
mounted() {},
methods: {},
};
</script>