Skip to content

Commit

Permalink
docs: note about new props when using props: true (#974)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
Soviut and posva committed May 31, 2021
1 parent 971a271 commit 7eb4280
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/guide/essentials/passing-props.md
Expand Up @@ -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>'
}
Expand Down

0 comments on commit 7eb4280

Please sign in to comment.