1234567891011121314151617181920 |
- <template>
- <button class="btn btn-primary me-3 font-bold" @click="count++">Count is: {{ count }}</button>
- </template>
- <script>
- export default {
- props: {
- initialCounter: { type: Number, default: 0 }
- },
- data () {
- return {
- count: this.initialCounter
- }
- }
- }
- </script>
- <style>
- </style>
|