ng4-paginator
TypeScript icon, indicating that this package has built-in type declarations

1.0.15 • Public • Published

ng4-paginator

This is an angular 4 module that allows for adding a paginator to an existing angular app.

How To Use Module

  • You need to add a dependency in your package.json to "ng4-paginator"
  • In your app module add Ng4PaginatorModule to the imports:[]
  • add an import in your app module
    • import { Ng4PaginatorModule } from 'ng4-paginator';
  • In your component template add the following block:
  • <ng4-paginator totalRecords="this is the total number of records" pagesPerGroup="this is number of pages displayed at in the paginator" recordsPerPage="this is the number of records per page" (currentPageChanged)="onPageChanged($event)"></ng4-paginator>


  • In your component implement the onPageChanged($event) method that captures the page number user has selected.
  • How To Build Module

    In order to build this code just browse to the directory where you've saved it and run "npm run build"

    Dependents (0)

    Package Sidebar

    Install

    npm i ng4-paginator

    Weekly Downloads

    2

    Version

    1.0.15

    License

    MIT

    Last publish

    Collaborators

    • masoudsharifi