]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: note about new props when using props: true (#974)
authorSoviut <izamojc@zamtools.com>
Mon, 31 May 2021 19:30:51 +0000 (15:30 -0400)
committerGitHub <noreply@github.com>
Mon, 31 May 2021 19:30:51 +0000 (21:30 +0200)
* 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 <posva@users.noreply.github.com>
docs/guide/essentials/passing-props.md

index 108a7a47471bb91fa19530d26ba47f71e8dc745f..e1d9a584a7b3e8532e7b6dc6b19e5d107d5b355d 100644 (file)
@@ -15,6 +15,7 @@ with
 
 ```js
 const User = {
+  // make sure to add a prop named exactly like the route param
   props: ['id'],
   template: '<div>User {{ id }}</div>'
 }