From: Soviut Date: Mon, 31 May 2021 19:30:51 +0000 (-0400) Subject: docs: note about new props when using props: true (#974) X-Git-Tag: v4.0.9~27 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7eb42807dc7bd8e72edf4afdb4ad406824a2dbb0;p=thirdparty%2Fvuejs%2Frouter.git docs: note about new props when using props: true (#974) * Clarify props must match param names * added comment to code example * Update docs/guide/essentials/passing-props.md Co-authored-by: Eduardo San Martin Morote --- diff --git a/docs/guide/essentials/passing-props.md b/docs/guide/essentials/passing-props.md index 108a7a47..e1d9a584 100644 --- a/docs/guide/essentials/passing-props.md +++ b/docs/guide/essentials/passing-props.md @@ -15,6 +15,7 @@ with ```js const User = { + // make sure to add a prop named exactly like the route param props: ['id'], template: '
User {{ id }}
' }