Update README.md

This commit is contained in:
Yev Vlasenko
2017-03-10 11:22:30 +00:00
committed by GitHub
parent 865ccfd04f
commit 724c078e4f

View File

@@ -1,18 +1,30 @@
##ue.js modal ##Vue.js modal
####Simple to use vue.js modal ####Simple to use vue.js modal
``` ![](http://i.imgur.com/1lnYmFj.png)
####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