Skip to content

Commit

Permalink
update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 14, 2016
1 parent dd9dad2 commit 3a6b4ff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

> Effortlessly keep vue-router and vuex store in sync.
**Note:** requires `vuex>=0.6.2`.

### Usage

``` bash
# the latest version works only with vue-router >= 2.0
npm install vuex-router-sync

# for usage with vue-router < 2.0:
npm install vuex-router-sync@2
```

``` js
import { sync } from 'vuex-router-sync'
import store from './vuex/store' // vuex store instance
Expand Down

0 comments on commit 3a6b4ff

Please sign in to comment.