Skip to content

Commit

Permalink
v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yangmingshan committed Nov 24, 2018
1 parent d0d6e1c commit 8c920e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $ yarn add vue-bus
$ npm install vue-bus --save
```
When used with a module system, you must explicitly install the bus via Vue.use():
```
```js
import Vue from 'vue';
import VueBus from 'vue-bus';

Expand All @@ -19,7 +19,7 @@ You don't need to do this when using global script tags.

## Usage
#### Listen and clean
```
```js
// ...
created() {
this.$bus.on('add-todo', this.addTodo);
Expand All @@ -35,7 +35,7 @@ methods: {
}
```
#### Trigger
```
```js
// ...
methods: {
addTodo() {
Expand All @@ -46,7 +46,7 @@ methods: {
}
```
#### Another way to use vue-bus
```
```js
// xxx.js
import Vue from 'vue';

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-bus",
"version": "1.1.0",
"version": "1.2.0",
"description": "A event bus for Vue.js",
"main": "dist/vue-bus.common.js",
"module": "dist/vue-bus.esm.js",
Expand Down

0 comments on commit 8c920e9

Please sign in to comment.