Skip to content

Commit 1327135

Browse files
author
fattihkoca
committed
Corrected spellings
1 parent 5c394e9 commit 1327135

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

README.md

+10-12
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,6 @@ npm install vuejs-overlay --save
1616

1717
# Usage
1818

19-
```js
20-
// ES6
21-
import vTitle from 'vuejs-overlay'
22-
Vue.use(vTitle)
23-
24-
// ES5
25-
var vTitle = require('vuejs-overlay')
26-
Vue.use(vTitle)
27-
```
28-
29-
### Example
30-
3119
```html
3220
<div id="app">
3321
<overlay :opened="opened" :visible="visible" @closed="opened = visible = false">
@@ -39,13 +27,19 @@ Vue.use(vTitle)
3927
```
4028

4129
```js
30+
// ES6
31+
import {Overlay} from 'vuejs-overlay.js';
32+
4233
new Vue({
4334
el: '#app',
4435
data() {
4536
return {
4637
opened: false,
4738
visible: false
4839
}
40+
},
41+
components: {
42+
Overlay
4943
}
5044
});
5145
```
@@ -88,6 +82,7 @@ Let's take an example of content data with ajax. In this example we used [`vuejs
8882

8983
```js
9084
import ajax from "vuejs-ajax";
85+
import {Overlay} from 'vuejs-overlay.js';
9186
Vue.use(ajax);
9287

9388
new Vue({
@@ -112,6 +107,9 @@ new Vue({
112107
this.opened = false;
113108
this.visible = false;
114109
}
110+
},
111+
components: {
112+
Overlay
115113
}
116114
});
117115
```

0 commit comments

Comments
 (0)