Skip to content

Commit 68c123c

Browse files
authored
Update README.md
1 parent d785d39 commit 68c123c

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

README.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
11
# vue-bus
22
A tiny simple central event bus plugin for [Vue.js](//vuejs.org) (requires Vue >= 2.0).
3-
43
The plugin realise [Non Parent-Child Communication](//vuejs.org/v2/guide/components.html#Non-Parent-Child-Communication).
4+
_(638 byte gzip)_
55

66
## Installation
7-
Download and use with your build system, or simple include with a script tag. :sparkles:
7+
Download and use with your build system
8+
```javascript
9+
import VueBus from 'vue-bus'
10+
// ... maybe ...
11+
var VueBus = require('vue-bus')
12+
// ... and ...
13+
Vue.use(VueBus)
14+
```
15+
Or just include it with a script tag. :sparkles:
16+
```html
17+
<script src="/vue-bus.js"></script>
18+
```
819

920
## Usage
1021
direct way:
@@ -32,4 +43,5 @@ onbus: {
3243
```
3344

3445
## License
35-
(c) 2017 fffixed
46+
[MIT](//opensource.org/licenses/MIT)
47+
Copyright (c) 2017 fffixed

0 commit comments

Comments
 (0)