From: Eduardo San Martin Morote Date: Fri, 11 Sep 2020 15:26:27 +0000 (+0200) Subject: docs(api): routerecord.props X-Git-Tag: v4.0.0-beta.10~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e7cde12655beb7d808febd8e0aa52a6222e9f5c;p=thirdparty%2Fvuejs%2Frouter.git docs(api): routerecord.props --- diff --git a/docs/api/index.md b/docs/api/index.md index 00eaafc6..91be993f 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -818,6 +818,16 @@ Route record that can be provided by the user when adding routes via the [`route Before enter guard specific to this record. Note `beforeEnter` has no effect if the record has a `redirect` property. +### props + +- **Type**: `boolean | Record | (to: RouteLocationNormalized) => Record` (Optional) +- **Details**: + + Allows passing down params as props to the component rendered by `router-view`. When passed to a _multiple views record_, it should be an object with the same keys as `components` or a `boolean` to be applied to each component. + target location. + +- **See Also**: [Passing props to Route Components](/guide/essentials/passing-props.md) + ### meta - **Type**: [`RouteMeta`](#routemeta) (Optional)