Skip to content

Commit 27fd630

Browse files
authored
Props option usage with named views (solve #1183) (#1193)
1 parent 48ec733 commit 27fd630

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/en/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+
// for routes with named views, you have to define the props option for each named view:
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)