Skip to content

Commit

Permalink
docs: add dynamic breadcrumb example
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jul 21, 2020
1 parent dbc9990 commit 41324e7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,20 @@ const router = new VueRouter({
parent: 'Params'
}
},
{
name: 'dynamic-parent',
path: '/dynamic-parent',
component: { template: '<h2>Dynamic Parent</h2>' },
meta: {
breadcrumb() {
const { name } = this.$route;

return {
label: name,
parent: 'settings'
};
}
}
}
]
});
Expand Down

0 comments on commit 41324e7

Please sign in to comment.