Very basic and simple pagination for your needs.
npm install --save vue-simply-paginate
yarn add --save vue-simply-paginate
and use it
There are few properties you need to provide to vue-simply-paginate.
- totalItems - The component needs to know how much items it is trying to paginate.
- currentPage - It also needs a variable so the current page you are on can be remembered.
- pageSize - You can pass the page size you want to the component. By default it will have "10" as default page size.
- page-change - The event will fire every time a button is pressed. Its payload carries the number of the new page.