UNPKG
clockdemo
Version:
latest (0.1.4)
0.1.4
0.1.3
0.1.2
## Project setup ``` yarn install ```
clockdemo
/
src
/
index.js
14 lines
(9 loc)
•
224 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
Vue
from
'vue'
import
Clock
from
'./components/Clock'
const
Components
= {
Clock
}
Object
.
keys
(
Components
) .
forEach
(
name
=>
{
Vue
.
component
(name,
Components
[name]) })
export
default
Components