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
- Host: GitHub
- URL: https://github.com/infinitypaul/simple-vuejs-modal
- Owner: infinitypaul
- Created: 2020-09-08T15:46:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T21:06:47.000Z (almost 6 years ago)
- Last Synced: 2025-02-11T09:50:07.103Z (over 1 year ago)
- Language: JavaScript
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
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"})
```