Skip to content
Advertisement

While using laravel-Vue-pagniation i not able to move to another page

In a Table, data is displayed but when I click on the page number provided by the laravel vue pagination it shows me that same page number 1. Well, the main issue is page number is not passed into the function(Composable API).

Template Table

JavaScript

In : data is passed the data that comes from composable API and in the @pagination-change-page the function is also passed from composable. Script Tag

JavaScript

Composable API In this function I received two parameters, here is where Pagination(@pagination-change-page)should throw page number!!

JavaScript

Advertisement

Answer

Worked Successfully with Composition API Vue3
just remove paginate parameter from getAccounts and don’t pass paginates to that function.

Updated Code </>

Script

JavaScript

Composable API

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement