File tree Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Expand file tree Collapse file tree 1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Supports only Vue >= 2
10
10
11
11
$ npm install vue-multivue --save
12
12
13
- ## Usage
13
+ ## JS & Vue
14
14
15
15
``` javascript
16
16
// AwesomeComponent.vue
@@ -19,20 +19,21 @@ Supports only Vue >= 2
19
19
< button @click= " doSomethingCool" >< / button>
20
20
< / div>
21
21
< / template>
22
+
22
23
< script>
23
- export default {
24
- data () {
25
- return {
26
- isDoingSomethingCool: false
27
- }
28
- },
24
+ export default {
25
+ data () {
26
+ return {
27
+ isDoingSomethingCool: false
28
+ }
29
+ },
29
30
30
- methods: {
31
- doSomethingCool () {
32
- this .isDoingSomethingCool = true ;
31
+ methods: {
32
+ doSomethingCool () {
33
+ this .isDoingSomethingCool = true ;
34
+ }
33
35
}
34
36
}
35
- }
36
37
< / script>
37
38
38
39
// app.js
@@ -46,6 +47,10 @@ new MultiVue('.my-app', {
46
47
});
47
48
```
48
49
50
+ ## HTML
51
+
52
+ Now you can use your app with the ` .my-app ` selector multiple times on a single page.
53
+
49
54
``` html
50
55
<html >
51
56
<body >
You can’t perform that action at this time.
0 commit comments