Skip to content

Commit

Permalink
added functionalities for the count
Browse files Browse the repository at this point in the history
  • Loading branch information
anoobbava committed Apr 14, 2019
1 parent 09703e8 commit ea4d692
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/components/ButtonCount.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
<template>
<h3>welcome to button count application</h3>
<div>
<h3>welcome to button count application</h3>
<p>Button count is: {{count}}</p>
<button @click="changeCount">click</button>
</div>
</template>

<script>
export default {
data () {
return {
count: 0
}
},
methods: {
changeCount () {
this.count += 1
}
}
}
</script>

<style>
</style>

0 comments on commit ea4d692

Please sign in to comment.