# vue2-paginate

> Vue2Paginate: Http component with Progress bar

Latest version **0.0.6** (published 2018-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue2-paginate
pnpm add vue2-paginate
yarn add vue2-paginate
bun add vue2-paginate
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2018-11-30 |
| First published | 2018-09-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.2.0 |
| Dependencies | 2 |
| Unpacked size | 46.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sanchit |
| Maintainers | san-kumar |
| Keywords | vue, bootstrap, Vue2Paginate, vue2-paginate |

## Links

- npm: https://www.npmjs.com/package/vue2-paginate
- Repository: https://github.com/san-kumar/vue2-paginate
- Issues: https://github.com/san-kumar/vue2-paginate/issues
- npm.io page: https://npm.io/package/vue2-paginate

## Dependencies (2)

- [vuejs-paginate](https://npm.io/package/vuejs-paginate.md) ^2.0.1
- [eslint-plugin-vue](https://npm.io/package/eslint-plugin-vue.md) ^5.0.0-beta.3

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 0.0.6 (latest) — 2018-11-30
- 0.0.5 — 2018-11-10
- 0.0.4 — 2018-11-10
- 0.0.3 — 2018-09-20
- 0.0.2 — 2018-09-18

## README

# Vue2Paginate

> Vue Component for Vue 2.x

## Install

``` bash
    npm install vue2-paginate --save
```

## Demo

For demo, please [see here](https://jsfiddle.net/superasn/e08wLyju/) 

## Usage

*1\. Import the component*

```
import Vue2Paginate from 'vue2-paginate';
```

*2\.1 Use it globally*

```
Vue.use(Vue2Paginate);

// OR with options

Vue.use(Vue2Paginate, {baseURL: 'https://jsonplaceholder.typicode.com/', headers: {'X-API-KEY': 1234}});
```

*3\. Access it locally

```
<template>
    <vue2-paginate ref="http" v-model="data" :error-fn="onError"></vue2-paginate>
</template>
```

```
components: {
    'vue2-paginate': Vue2Paginate
},

```

## Properties

- **value**: *Array*

- **size**: *String* (default: *sm*)

- **centered**: *Boolean* (default: *1*)

- **itemsPerPage**: *Number* (default: *3*)

- **autoHide**: *Boolean*



## Example

    <template>
        <div id="app" style="text-align: center">
            <div>
                <div class="card card-body">
                    <h3>World countries</h3>
    
                    <div v-for="item in items" :key="item.name.common">
                        <div class="card card-body">Capital of {{item.name.common}} is {{item.capital[0]}}</div>
                    </div>
                </div>
    
                <vue2-paginate v-model="data" :items.sync="items"></vue2-paginate>
            </div>
        </div>
    </template>
    
    <script>
        import Vue from 'vue';
        import Vue2Paginate from '../src/index'
        import countries from 'world-countries/dist/countries';
    
        Vue.use(Vue2Paginate, {});
    
        export default {
            name: 'app',
            data() {
                return {
                    data: countries,
                    items: [],
                }
            },
            methods: {
                test() {
                    // code
                }
            },
        }
    </script>
    

## Contributing

Contributions are welcome

## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```

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