Skip to content

Instantly share code, notes, and snippets.

View acomerlatto's full-sized avatar
:shipit:

Alisson Comerlatto acomerlatto

:shipit:
  • 123Milhas
  • Curitiba - Paraná - Brazil
View GitHub Profile
### Keybase proof
I hereby claim:
* I am acomerlatto on github.
* I am acomerlatto (https://keybase.io/acomerlatto) on keybase.
* I have a public key ASCMGHazLT5Y8Yc4eUX7nZVcNoTf8fk-rsP5JALyj_WnPAo
To claim this, I am signing this object:
@acomerlatto
acomerlatto / pagination.vue
Last active September 19, 2020 21:46
Laravel + NuxtJS + Bootstrap - Pagination
<template>
<nav>
<ul class="pagination justify-content-center">
<li v-if="pagination.current_page > 1" class="page-item">
<nuxt-link :to="changePage(pagination.current_page - 1)" aria-label="Previous" class="page-link">
<span aria-hidden="true">«</span>
</nuxt-link>
</li>
<li v-for="(page, index) in pagesNumber" :key="'paginate' + index" class="page-item" :class="{'active': page == pagination.current_page}">
<nuxt-link :to="changePage(page)" class="page-link" :key="'paginateLink' + index">