Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <template>
- <div>
- <button class="paginator__previous-btn" @click="previousPage"></button>
- <button class="paginator__next-btn" @click="nextPage"></button>
- </div>
- </template>
- <script>
- export default {
- data() {
- return {
- currentPage: 1
- }
- },
- methods: {
- previousPage() {
- this.currentPage -= 1
- },
- nextPage() {
- this.currentPage += 1
- }
- }
- }
- </script>
Add Comment
Please, Sign In to add comment