Update README.md

This commit is contained in:
Yev Vlasenko
2016-11-14 12:48:38 +00:00
committed by GitHub
parent ee50379de6
commit d11b89989e

View File

@@ -5,6 +5,24 @@ A simple modal component for Vue.js
##Install
##Usage
Example:
```html
<template>
<div id="app">
<h1>Test page</h1>
<button @click="modal('basic')">Show modal</button>
<modal name="basic">Hello! Im a modal!</modal>
</div>
</template>
<script>
export default {
name: 'app',
methods: {
modal(name) => this.$modal.show(name),
},
};
</script>
```
##License
MIT
MIT