An open API service indexing awesome lists of open source software.

https://github.com/infinitypaul/simple-vuejs-modal

Simple And Flexible VueJs Modal
https://github.com/infinitypaul/simple-vuejs-modal

Last synced: over 1 year ago
JSON representation

Simple And Flexible VueJs Modal

Awesome Lists containing this project

README

          

# VueJS Modal

Simple And Flexible VueJs Modal

## Getting Started

```
// installation via npm
npm i -S simple-vuejs-modal

// or

// installation via yarn
yarn add simple-vuejs-modal
```

## Usage

#### SignIn.vue
```vue



Head


Body

import VueModal from '@/simple-vuejs-modal.vue';

export default {
name: "SignIn",
components:{
VueModal
}
}

```

#### Home.vue

```vue


Open Modal

import SignIn from './SignIn';

export default {
name: "Home",
components:{
SignIn
}
}

```

##### Open Modal

```
//In Script
this.$modal.show('signIn')

In Templete
$modal.show('signIn')
```

##### Close Modal

```
this.$modal.hide('signIn')
```

##### Dynamic modals

```
this.$modal.show(componentName', Properties)

For Example : this.$modal.show('signIn', {name: "Paul"})
```