Update README.md

This commit is contained in:
Yev Vlasenko
2017-08-04 11:39:37 +01:00
committed by GitHub
parent bd9504d65b
commit 6383ea1dd0

View File

@@ -57,6 +57,25 @@ methods: {
} }
} }
``` ```
---
You can easily send data into the modal:
```vue
this.$modal.show('hello-world', { foo: 'bar' })
```
And receive it on `beforeOpen` event:
```vue
<modal name="hello-world" @before-open="beforeOpen"/>
...
methods: {
beforeOpen (event) {
console.log(event.params.foo);
}
}
```
### SSR ### SSR