File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 1
1
# vue-bus
2
2
A tiny simple central event bus plugin for [ Vue.js] ( //vuejs.org ) (requires Vue >= 2.0).
3
-
4
3
The plugin realise [ Non Parent-Child Communication] ( //vuejs.org/v2/guide/components.html#Non-Parent-Child-Communication ) .
4
+ _ (638 byte gzip)_
5
5
6
6
## 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
+ ```
8
19
9
20
## Usage
10
21
direct way:
@@ -32,4 +43,5 @@ onbus: {
32
43
```
33
44
34
45
## License
35
- (c) 2017 fffixed
46
+ [ MIT] ( //opensource.org/licenses/MIT )
47
+ Copyright (c) 2017 fffixed
You can’t perform that action at this time.
0 commit comments