# Vue2ModalPopup
> Vue2ModalPopup Component for Vue 2.x

## Install

``` bash
    npm install vue2-modal-popup --save
```

## Usage

*1\. Import the component*

```
import Vue2ModalPopup from 'vue2-modal-popup';
```

*2\.1 Use it globally*

```
Vue.use(Vue2ModalPopup);
```

*3\. Inside your app or component:*

```
import MyComponent from './MyComponent.vue';

 
methods: {
    load() {
        // this.$modal.show(Component, data, options);
        this.$modal.show(MyComponent, 'path (like v-model)', {backdrop: 'static'})
            .then((data) => this.item = data);
    }
}
```

## Example

See ```index.html``` for example use


## 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
```
