Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template lang="html">
- <div>
- <div>{{ count }}</div>
- <button @click="add()">Increment</button>
- </div>
- </template>
- <script>
- export default {
- data () {
- return {
- count: 0
- }
- },
- methods: {
- add () {
- this.count += 1;
- }
- }
- }
- </script>
Add Comment
Please, Sign In to add comment