Skip to content

Commit 89c458a

Browse files
committed
getting things ready to publish
1 parent 2ec99a1 commit 89c458a

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

readme.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Supports only Vue >= 2
1010

1111
$ npm install vue-multivue --save
1212

13-
## Usage
13+
## JS & Vue
1414

1515
```javascript
1616
// AwesomeComponent.vue
@@ -19,20 +19,21 @@ Supports only Vue >= 2
1919
<button @click="doSomethingCool"></button>
2020
</div>
2121
</template>
22+
2223
<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+
},
2930

30-
methods: {
31-
doSomethingCool () {
32-
this.isDoingSomethingCool = true;
31+
methods: {
32+
doSomethingCool () {
33+
this.isDoingSomethingCool = true;
34+
}
3335
}
3436
}
35-
}
3637
</script>
3738

3839
// app.js
@@ -46,6 +47,10 @@ new MultiVue('.my-app', {
4647
});
4748
```
4849

50+
## HTML
51+
52+
Now you can use your app with the `.my-app` selector multiple times on a single page.
53+
4954
```html
5055
<html>
5156
<body>

0 commit comments

Comments
 (0)