# ng-paginator

> Angular 1 smart and easy to use pagination directive

Latest version **1.0.3** (published 2016-08-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install ng-paginator
pnpm add ng-paginator
yarn add ng-paginator
bun add ng-paginator
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-08-21 |
| First published | 2016-08-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nghi Le |
| Maintainers | vinhnghi223 |
| Keywords | pagination, paginator, ng-pagination, ng-paginator, client, angular, angular component, front-end |

## Links

- npm: https://www.npmjs.com/package/ng-paginator
- npm.io page: https://npm.io/package/ng-paginator

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2016-08-21
- 1.0.2 — 2016-08-21
- 1.0.1 — 2016-08-21

## README

# Ng-paginator

[![npm version](https://badge.fury.io/js/ng-paginator.svg)](http://badge.fury.io/js/ng-paginator)

Pagination component for Angular 1.x, displaying the sequence of numbers assigned to pages in a book or periodical.

[`Demo`](https://vinhnghi223.github.io/ng-paginator/)

# Usage

### Install

`npm i --save ng-paginator`

### Add library to your page

``` html
<script src="node_modules/ng-paginator/dist/ng-paginator.js"></script>
```

You should use minified version (`ng-paginator.min.js`) in production.


### Add dependency in your application's module definition

``` javascript
var application = angular.module('application', [
  // ...
  'ngPaginator'
]);
```

### Use ng-paginator in your html

``` html
<ng-paginator total-pages="25" current-page-id="1" visible-range-limit="4" on-click="vm.onPageClick(data)"></ng-paginator>
```

## API

| Attributes                    | Description                                              |
|-------------------------------|----------------------------------------------------------|
| {integer} total-pages         | total number of pages.                                   |
| {integer} current-page-id     | current page id.                                         |
| {integer} visible-range-limit | number of page links to be visible one at a time.        |
| {function} on-click           | callback to be called everytime user clicks a page link. |

## Feedback

If you have found a bug or have another issue with the library —
please [create an issue][new-issue].

If you have a question regarding the library or it's integration with your project —
consider asking a question at [StackOverflow][so-ask] and sending me a
link via [E-Mail][email]. I will be glad to help.

Have any ideas or propositions? Feel free to contact me by [E-Mail][email].

Cheers!

## Developer guide

Fork, clone, create a feature branch, implement your feature, cover it with tests, commit, create a PR.

Run:

- `npm i` to initialize the project
- `gulp` to re-build the dist files
- `karma start` to test the code

Do not add dist files to the PR itself.
We will re-compile the module manually each time before releasing.


## Support

If you like this library consider to add star on [GitHub repository][repo-gh].

Thank you!

---
_Source: https://npm.io/package/ng-paginator · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
