Last active
January 4, 2022 09:54
-
-
Save 12cassie34/66c5b78aa7e1529a81efedde6b7485bc to your computer and use it in GitHub Desktop.
Vue Pagination - Step 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data() { | |
return { | |
currentPage: 1, | |
itemsPerPage: 1, | |
dataAmount: 0, | |
cities: [ | |
{ | |
id: 1, | |
name: "Paris" | |
}, | |
{ | |
id: 2, | |
name: "Nice" | |
}, | |
{ | |
id: 3, | |
name: "Toulouse" | |
}, | |
{ | |
id: 4, | |
name: "Marseille" | |
}, | |
... | |
] | |
}; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment