You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: readme.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
#vuex-router
1
+
#vuex-router
2
2
3
3
## What is this?
4
4
@@ -19,8 +19,7 @@ into the store, where it can be managed and safely shared across components.
19
19
20
20
This is convenient from an API perspective, and allows for some very clean code. The location state is read and updated just like the rest of the application state, instead of requiring a separate routing API.
21
21
22
-
## How is this different than [vue-router](https://router.vuejs.org/en/) with
## How is this different than [vue-router](https://router.vuejs.org/en/) with [vuex-router-sync](https://github.com/vuejs/vuex-router-sync)?
24
23
25
24
Even when used with `vuex-router-sync`, `vue-router` still uses the browser history as the "source of truth" for the location state.
26
25
@@ -45,9 +44,9 @@ Install `vuex-router` with yarn or npm.
45
44
46
45
The easiest way to configure `vuex-router` is with [WebPack](https://webpack.js.org/) and [babel-loader](https://github.com/babel/babel-loader). In most situations, babel-loader will find the `.babelrc` file in the `vuex-router` folder and use it to build `vuex-router`.
47
46
48
-
If you have questions about a specific configuration scenario, feel free to open an issue, or submit a PR with an example, even if it's only partly working.
47
+
If there are questions about a specific configuration scenario, feel free to open an issue, or submit a PR with an example, even if it's only partly working.
49
48
50
-
A pre-transpiled version of `vuex-router` is included at `dist/vuex-router-min.js` in the npm package, but it has not been thoroughly tested. Please open an issue if you run into any problems using it.
49
+
A pre-transpiled version of `vuex-router` is included at `dist/vuex-router-min.js` in the npm package, but it has not been thoroughly tested. Please open an issue if there are any problems using it.
The user's location will be `"/"`, because when we added `"/blog"`, it _replaced_`"/home"` in the browser's history.
231
230
232
-
You can learn more about browser history at [MDN - Adding and modifying history entries]([`window.history.pushState`](https://developer.mozilla.org/en-US/docs/Web/API/History_API#Adding_and_modifying_history_entries)
231
+
Learn more about browser history at [MDN - Adding and modifying history entries]([`window.history.pushState`](https://developer.mozilla.org/en-US/docs/Web/API/History_API#Adding_and_modifying_history_entries)
0 commit comments