I'm pretty new to VueJS but everything was fine and made sense but suddenly, I'm having an issue using vue-plain-pagination
. In the data()
of my Vue component, I set a currentPage
prop default to 1
like so:
...
data() {
return {
info: {},
search: "",
currentPage: 1,
};
}
...
In my index.html I set that as the v-model
. That v-model
, no matter if I change the variable name or place a new variable there, is defaulting to 0
.
I've tried to change the variable name, in case it is conflicted with something else, and I've tried initiating and using a different variable. But it always defaults to 0
.
// In the index.html....
<v-pagination
v-model="currentPage"
:page-count="page_count"
></v-pagination>
// In the js file
var my_vue = new Vue({
el: '#app',
delimiters: ['[[', ']]'],
components: {
VoerroTagsInput
},
data() {
return {
info: {},
search: "",
currentPage: 1,
};
}
})
When I render my page, this value is set to 0, when it should be set to 1. Has anyone seen this issue before, or am I missing something?