mirror of
https://github.com/KevinMidboe/vue-js-modal.git
synced 2025-10-29 18:00:20 +00:00
Update README.md
This commit is contained in:
22
README.md
22
README.md
@@ -1,18 +1,30 @@
|
|||||||
##ue.js modal
|
##Vue.js modal
|
||||||
|
|
||||||
####Simple to use vue.js modal
|
####Simple to use vue.js modal
|
||||||
|
|
||||||
```
|

|
||||||
|
|
||||||
|
|
||||||
|
####Install:
|
||||||
|
|
||||||
|
Include plugin in your main.js file.
|
||||||
|
```javsacript
|
||||||
import 'vue-modal';
|
import 'vue-modal';
|
||||||
```
|
```
|
||||||
|
|
||||||
```
|
Create modal
|
||||||
|
```html
|
||||||
<modal name="hello-world">
|
<modal name="hello-world">
|
||||||
hello, world!
|
hello, world!
|
||||||
</modal>
|
</modal>
|
||||||
|
```
|
||||||
...
|
Call it from anywhere in the app
|
||||||
|
```javascript
|
||||||
methods: {
|
methods: {
|
||||||
this.$modal.show('hello-word');
|
this.$modal.show('hello-word');
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
####Props:
|
||||||
|
|
||||||
|
//todo
|
||||||
|
|||||||
Reference in New Issue
Block a user