[Vuejs]-Bootstrap-vue pagination nav not working as in the tutorial (refreshes when a page is clicked)

0👍

Try this :::

methods: {
        linkGen(pageNum) {
          return pageNum;
        }
      }

https://jsfiddle.net/np62xjrq/

0👍

Make sure your linkGen function returns the full URL path, or return a vue-router location object (assuming you want to use a query string in the URL to change page):

linkGen(page) {
  return {
    query {
     page: page
    }
  }
}

Leave a comment