1.0.1 • Published 6 years ago
time-countdown v1.0.1
How To use this plugin?
you can use this plugin in your project.
- For example: In a vue project
- you should install this module
- in project main.js, you should import this moudule
- and you can use it
1) npm i time-countdown --save
2) in main.js
import countdown from 'time-countdown'
Vue.prototype.countdown = countdown
3) and in your files
setInterval(function () {
this.timer = this.countdown(1528281966000)
}.bind(this), 1000)
4) Returned data type
{
'hours': xx,
'minutes': xx,
'seconds': xx,
}