# vue2-template

> Vue2Template: Http component with Progress bar

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

## Install

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

## 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.4 |
| Published | 2018-11-30 |
| First published | 2018-11-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 4.2.0 |
| Dependencies | 1 |
| Unpacked size | 19.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sanchit |
| Maintainers | san-kumar |
| Keywords | vue, bootstrap, Vue2Template, vue2-template |

## Links

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

## Dependencies (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.4 (latest) — 2018-11-30
- 0.0.3 — 2018-11-10
- 0.0.2 — 2018-11-10

## README

# Vue2Template

> Vue Component for Vue 2.x

## Install

``` bash
    npm install vue2-template --save
```

## Demo

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

## Usage

*1\. Import the component*

```
import Vue2Template from 'vue2-template';
```

*2\.1 Use it globally*

```
Vue.use(Vue2Template);

// OR with options

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

*3\. Access it locally

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

```
components: {
    'vue2-template': Vue2Template
},

```

## Properties

- **value**: *any*



## Example

    <template>
        <div id="app" style="text-align: center">
            <div>
                <vue2-template v-model="data"></vue2-template>
    
                <pre>{{data}}</pre>
    
                <button class="btn btn-primary btn-sm" type="button" @click="test">Test</button>
    
            </div>
        </div>
    </template>
    
    <script>
        import Vue from 'vue';
        import Vue2Template from '../src/index'
    
        Vue.use(Vue2Template, {});
    
        export default {
            name: 'app',
            data() {
                return {
                    data: {},
                }
            },
            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-template · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
