I'm starting to use the Moments library of VUE.JS, I have a message area on my website and I need the date to be shown as: "Posted 5 minutes ago", I was able to show the date with the code below, but I noticed that the same only refresh refreshes, is not reactive, what can I have done wrong?
<script src="https://momentjs.com/downloads/moment.js"></script><divid="app-ask-marketplace">
<div>{{moment(item.date, "YYYY-MM-DD hh:ii").fromNow()}}</div>
</div>
<script>
new Vue({
el:"#app-ask-marketplace",
data : {
},
methods : {
}, mounted(){
}
})
</script>