A Angular pagination component for Laravel paginator that works with Bootstrap.
npm install ng-laravel-pagination
import {NgLaravelPaginationModule} from 'ng-laravel-pagination';
@NgModule({
...
imports: [
...
NgLaravelPaginationModule
],
...
})
<ng-laravel-pagination [data]="laravelData" align="right" [pageDesc]="true" (changePage)="changePage($event)"></ng-laravel-pagination>
changePage(pagination): void {
console.log(pagination);
}
Name | Type | Default | Description |
---|---|---|---|
data |
Object | An object containing the structure of a Laravel paginator response or a Laravel API Resource response. | |
align |
String | right |
Define the alignment of the pagination content. |
pageDesc |
Boolean | true |
Hide/Show Pagination description |
theme |
String | theme-default |
Theme values are theme-default theme-round theme-non-button |
Name | Description |
---|---|
changePage |
Triggered when a user changes page. Passes the new pagination object as a parameter. |
Released under the MIT License, see LICENSE.