Strange issue, I am trying to create a pagination system and I am trying to increase the next page value by 1. However as you can see the value is appended instead of increasing the value.
this.page = 1
<a v-if="this.total_pages > this.page" class="link" :href="'/cryptocurrency/market-cap?p='+(this.page + 1)">></a>
The above returns p=11 vue seems to append the 1 to the original page value of 1 instead of increasing the page value to 2.
If however I do the following it seems to work and decreases the p value by 1.
<a v-if="this.total_pages > 1 & this.page > 1" class="link" :href="'/cryptocurrency/market-cap?p='+(this.page - 1)" ><</a>
this.pagea string or a number? If it is a string, you will need to convert it to a number first, i.e.(+this.page + 1)&&, not&