Skip to content

Commit b3929c8

Browse files
authored
translate prop passing (#1196)
1 parent 27fd630 commit b3929c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/ja/essentials/passing-props.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ const User = {
2727
const router = new VueRouter({
2828
routes: [
2929
{ path: '/user/:id', component: User, props: true }
30+
31+
// 名前付きビューによるルートに対しては、名前付きビューごとに props オプションを定義しなければなりません:
32+
{
33+
path: '/user/:id',
34+
components: { default: User, sidebar: Sidebar },
35+
props: { default: true, sidebar: false }
36+
}
3037
]
3138
})
3239
```

0 commit comments

Comments
 (0)