vue2-modal-promise

0.0.5 • Public • Published

Vue2ModalPromise

Vue2ModalPromise Component for Vue 2.x

Install

    npm install vue2-modal-promise --save

Usage

1. Import the component

import Vue2ModalPromise from 'vue2-modal-promise';

2.1 Use it globally

Vue.use(Vue2ModalPromise);

3. Inside your app or component:

import MyComponent from './MyComponent.vue';

 
methods: {
    load() {
        // this.$modal.show(Component, data, options);
        this.$modal.show(MyComponent, this.item, {backdrop: 'static'})
            .then((data) => this.item = data);
    }
}

Example

See index.html for example use

Contributing

Contributions are welcome

Build Setup

# install dependencies
npm install
 
# serve with hot reload at localhost:8080
npm run dev
 
# build for production with minification
npm run build

Package Sidebar

Install

npm i vue2-modal-promise

Weekly Downloads

7

Version

0.0.5

License

MIT

Unpacked Size

37.3 kB

Total Files

8

Last publish

Collaborators

  • uploader-window