From: Eduardo San Martin Morote Date: Mon, 14 Jun 2021 14:55:34 +0000 (+0200) Subject: docs: typo X-Git-Tag: v4.0.9~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ef1b1022d2abbb0c20b1a18ec582bc23039359f;p=thirdparty%2Fvuejs%2Frouter.git docs: typo --- diff --git a/docs/guide/essentials/navigation.md b/docs/guide/essentials/navigation.md index 31eefb14..14b2eb9b 100644 --- a/docs/guide/essentials/navigation.md +++ b/docs/guide/essentials/navigation.md @@ -51,7 +51,7 @@ router.push({ name: 'user', params: { username } }) // -> /user/eduardo router.push({ path: '/user', params: { username } }) // -> /user ``` -When specifying `params`, make sure to either provide a `string` or `number` (or an array of these for [repeatable params](./oute-matching-syntax.md#repeatable-params)). **Any other type (like `undefined`, `false`, etc) will be automatically stringified**. For [optional params](./route-matching-syntax.md#repeatable-params), you can provide an empty string (`""`) as the value to skip it. +When specifying `params`, make sure to either provide a `string` or `number` (or an array of these for [repeatable params](./route-matching-syntax.md#repeatable-params)). **Any other type (like `undefined`, `false`, etc) will be automatically stringified**. For [optional params](./route-matching-syntax.md#repeatable-params), you can provide an empty string (`""`) as the value to skip it. Since the prop `to` accepts the same kind of object as `router.push`, the exact same rules apply to both of them.