Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.

Commit 6a6cbab

Browse files
committed
init
0 parents  commit 6a6cbab

File tree

6 files changed

+4806
-0
lines changed

6 files changed

+4806
-0
lines changed

.babelrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"targets:": { "node": "6" } // change this to your node version
5+
}]
6+
]
7+
}

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
.DS_Store

counter.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// counter.js
2+
3+
export default {
4+
template: `
5+
<div>
6+
<span class="count">{{ count }}</span>
7+
<button @click="increment">Increment</button>
8+
</div>
9+
`,
10+
11+
data () {
12+
return {
13+
count: 0
14+
}
15+
},
16+
17+
methods: {
18+
increment () {
19+
this.count++
20+
}
21+
}
22+
}

0 commit comments

Comments
 (0)