1.0.10 • Published 6 years ago
@redaced/vue-time-ago v1.0.10
vue-time-ago
A Vue component that shows a clock.
Installation
npm i --save-dev @redaced/vue-time-ago
Browser
Include the script file, then install the component with Vue.use(VueClock);
e.g.:
<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/vue-clock-simple/dist/vue-clock.min.js"></script>
<script type="text/javascript">
Vue.use(VueClock);
</script>
Module
import VueClock from 'vue-clock';
Usage
Once installed, it can be used in a template as simply as:
<vue-clock></vue-clock>