10 |
11 |
12 |
21 |
22 |
23 | Code used by this demo:
24 |
25 | ```html
26 |
31 | ```
32 |
33 | You can use `autoUpdate` prop to control how often this component should be updated, for example if you set it to `true`, it will be updated every 60 seconds.
34 |
35 |
--------------------------------------------------------------------------------
/example/BasicUsage.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
21 |
22 |
23 | First you need to use the plugin:
24 |
25 | ```js
26 | import Timeago from 'vue-timeago'
27 |
28 | Vue.use(Timeago)
29 | ```
30 |
31 | Then use the `` component in your Vue component like this:
32 |
33 | ```html
34 |
35 |