From 6383ea1dd03f72fe0f4bdf749c0719723ef7a967 Mon Sep 17 00:00:00 2001 From: Yev Vlasenko Date: Fri, 4 Aug 2017 11:39:37 +0100 Subject: [PATCH] Update README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index 572b99b..f79cb58 100644 --- a/README.md +++ b/README.md @@ -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 + +... +methods: { + beforeOpen (event) { + console.log(event.params.foo); + } +} +``` ### SSR