From a364b9a94c7354556d74c0feafdd1ea6a3f0d1bf Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Fri, 29 Sep 2017 18:21:43 +0800 Subject: [PATCH] [en] http -> https & some typos --- docs/en/advanced/lazy-loading.md | 2 +- docs/en/api/router-link.md | 4 ---- docs/en/essentials/dynamic-matching.md | 2 +- docs/en/essentials/getting-started.md | 2 +- docs/en/essentials/navigation.md | 3 +-- docs/en/essentials/nested-routes.md | 2 +- 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/docs/en/advanced/lazy-loading.md b/docs/en/advanced/lazy-loading.md index ae1098b5f..d4c76c41e 100644 --- a/docs/en/advanced/lazy-loading.md +++ b/docs/en/advanced/lazy-loading.md @@ -16,7 +16,7 @@ Second, in webpack 2, we can use the [dynamic import](https://github.com/tc39/pr import('./Foo.vue') // returns a Promise ``` -> Note: if you are using Babel, you will need to add the [syntax-dynamic-import](http://babeljs.io/docs/plugins/syntax-dynamic-import/) plugin so that Babel can properly parse the syntax. +> Note: if you are using Babel, you will need to add the [syntax-dynamic-import](https://babeljs.io/docs/plugins/syntax-dynamic-import/) plugin so that Babel can properly parse the syntax. Combining the two, this is how to define an async component that will be automatically code-split by webpack: diff --git a/docs/en/api/router-link.md b/docs/en/api/router-link.md index 47873f68e..c218c5d0d 100644 --- a/docs/en/api/router-link.md +++ b/docs/en/api/router-link.md @@ -42,7 +42,6 @@ Register ``` - - **replace** - type: `boolean` @@ -55,7 +54,6 @@ ``` - - **append** - type: `boolean` @@ -68,7 +66,6 @@ ``` - - **tag** - type: `string` @@ -83,7 +80,6 @@
  • foo
  • ``` - - **active-class** - type: `string` diff --git a/docs/en/essentials/dynamic-matching.md b/docs/en/essentials/dynamic-matching.md index 0fe43038e..1e235377c 100644 --- a/docs/en/essentials/dynamic-matching.md +++ b/docs/en/essentials/dynamic-matching.md @@ -25,7 +25,7 @@ const User = { } ``` -You can check out a live example [here](http://jsfiddle.net/yyx990803/4xfa2f19/). +You can check out a live example [here](https://jsfiddle.net/yyx990803/4xfa2f19/). You can have multiple dynamic segments in the same route, and they will map to corresponding fields on `$route.params`. Examples: diff --git a/docs/en/essentials/getting-started.md b/docs/en/essentials/getting-started.md index d4de95a3b..1e93f140f 100644 --- a/docs/en/essentials/getting-started.md +++ b/docs/en/essentials/getting-started.md @@ -65,6 +65,6 @@ const app = new Vue({ // Now the app has started! ``` -You can also check out this example [live](http://jsfiddle.net/yyx990803/xgrjzsup/). +You can also check out this example [live](https://jsfiddle.net/yyx990803/xgrjzsup/). Notice that a `` automatically gets the `.router-link-active` class when its target route is matched. You can learn more about it in its [API reference](../api/router-link.md). diff --git a/docs/en/essentials/navigation.md b/docs/en/essentials/navigation.md index 03d79b0ea..e48549ad5 100644 --- a/docs/en/essentials/navigation.md +++ b/docs/en/essentials/navigation.md @@ -44,7 +44,7 @@ The same rules apply for the `to` property of the `router-link` component. 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. -**Note:** If the destination is the same as the current route and only params are changing (eg: 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 (eg: fetching the user information). +**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). #### `router.replace(location, onComplete?, onAbort?)` @@ -54,7 +54,6 @@ It acts like `router.push`, the only difference is that it navigates without pus |-------------|--------------| | `` | `router.replace(...)` | - #### `router.go(n)` This method takes a single integer as parameter that indicates by how many steps to go forwards or go backwards in the history stack, similar to `window.history.go(n)`. diff --git a/docs/en/essentials/nested-routes.md b/docs/en/essentials/nested-routes.md index e39ebdf9a..8242d7526 100644 --- a/docs/en/essentials/nested-routes.md +++ b/docs/en/essentials/nested-routes.md @@ -96,4 +96,4 @@ const router = new VueRouter({ }) ``` -A working demo of this example can be found [here](http://jsfiddle.net/yyx990803/L7hscd8h/). +A working demo of this example can be found [here](https://jsfiddle.net/yyx990803/L7hscd8h/).