Skip to content

Commit 266b236

Browse files
committed
docs: replace html with md in local links
1 parent e6c4ec7 commit 266b236

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/guide/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
::: tip Note
44
We will be using [ES2015](https://github.com/lukehoban/es6features) in the code samples in the guide.
55

6-
Also, all examples will be using the full version of Vue to make on-the-fly template compilation possible. See more details [here](https://vuejs.org/v2/guide/installation.html#Runtime-Compiler-vs-Runtime-only).
6+
Also, all examples will be using the full version of Vue to make on-the-fly template compilation possible. See more details [here](https://vuejs.org/v2/guide/installation.md#Runtime-Compiler-vs-Runtime-only).
77
:::
88

99
Creating a Single-page Application with Vue + Vue Router is dead simple. With Vue.js, we are already composing our application with components. When adding Vue Router to the mix, all we need to do is map our components to the routes and let Vue Router know where to render them. Here's a basic example:

docs/guide/advanced/lazy-loading.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
When building apps with a bundler, the JavaScript bundle can become quite large, and thus affect the page load time. It would be more efficient if we can split each route's components into a separate chunk, and only load them when the route is visited.
44

5-
Combining Vue's [async component feature](https://vuejs.org/guide/components.html#Async-Components) and webpack's [code splitting feature](https://webpack.js.org/guides/code-splitting-async/), it's trivially easy to lazy-load route components.
5+
Combining Vue's [async component feature](https://vuejs.org/guide/components.md#Async-Components) and webpack's [code splitting feature](https://webpack.js.org/guides/code-splitting-async/), it's trivially easy to lazy-load route components.
66

77
First, an async component can be defined as a factory function that returns a Promise (which should resolve to the component itself):
88

docs/guide/essentials/navigation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The same rules apply for the `to` property of the `router-link` component.
4848

4949
In 2.2.0+, optionally provide `onComplete` and `onAbort` callbacks to `router.push` or `router.replace` as the 2nd and 3rd arguments. These callbacks will be called when the navigation either successfully completed (after all async hooks are resolved), or aborted (navigated to the same route, or to a different route before current navigation has finished), respectively.
5050

51-
**Note:** If the destination is the same as the current route and only params are changing (e.g. going from one profile to another `/users/1` -> `/users/2`), you will have to use [`beforeRouteUpdate`](./dynamic-matching.html#reacting-to-params-changes) to react to changes (e.g. fetching the user information).
51+
**Note:** If the destination is the same as the current route and only params are changing (e.g. going from one profile to another `/users/1` -> `/users/2`), you will have to use [`beforeRouteUpdate`](./dynamic-matching.md#reacting-to-params-changes) to react to changes (e.g. fetching the user information).
5252

5353
## `router.replace(location, onComplete?, onAbort?)`
5454

docs/zh/guide/essentials/navigation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ router.push({ path: '/user', params: { userId }}) // -> /user
4848

4949
在 2.2.0+,可选的在 `router.push``router.replace` 中提供 `onComplete``onAbort` 回调作为第二个和第三个参数。这些回调将会在导航成功完成 (在所有的异步钩子被解析之后) 或终止 (导航到相同的路由、或在当前导航完成之前导航到另一个不同的路由) 的时候进行相应的调用。
5050

51-
**注意:**如果目的地和当前路由相同,只有参数发生了改变 (比如从一个用户资料到另一个 `/users/1` -> `/users/2`),你需要使用 [`beforeRouteUpdate`](./dynamic-matching.html#响应路由参数的变化) 来响应这个变化 (比如抓取用户信息)。
51+
**注意:**如果目的地和当前路由相同,只有参数发生了改变 (比如从一个用户资料到另一个 `/users/1` -> `/users/2`),你需要使用 [`beforeRouteUpdate`](./dynamic-matching.md#响应路由参数的变化) 来响应这个变化 (比如抓取用户信息)。
5252

5353
## `router.replace(location, onComplete?, onAbort?)`
5454

0 commit comments

Comments
 (0)