Skip to content

Commit

Permalink
Props option usage with named views (solve #1183) (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg committed Feb 23, 2017
1 parent 48ec733 commit 27fd630
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/en/essentials/passing-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ const User = {
const router = new VueRouter({
routes: [
{ path: '/user/:id', component: User, props: true }

// for routes with named views, you have to define the props option for each named view:
{
path: '/user/:id',
components: { default: User, sidebar: Sidebar },
props: { default: true, sidebar: false }
}
]
})
```
Expand Down

0 comments on commit 27fd630

Please sign in to comment.