Skip to content

Commit 3a6b4ff

Browse files
committed
update usage
1 parent dd9dad2 commit 3a6b4ff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@
22

33
> Effortlessly keep vue-router and vuex store in sync.
44
5-
**Note:** requires `vuex>=0.6.2`.
6-
75
### Usage
86

97
``` bash
8+
# the latest version works only with vue-router >= 2.0
109
npm install vuex-router-sync
10+
11+
# for usage with vue-router < 2.0:
12+
npm install vuex-router-sync@2
1113
```
14+
1215
``` js
1316
import { sync } from 'vuex-router-sync'
1417
import store from './vuex/store' // vuex store instance

0 commit comments

Comments
 (0)