Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parent property doesn't work #109

Closed
VladymyrKarpov opened this issue Dec 18, 2020 · 3 comments
Closed

Parent property doesn't work #109

VladymyrKarpov opened this issue Dec 18, 2020 · 3 comments
Labels
Milestone

Comments

@VladymyrKarpov
Copy link

Hi, thanks for your work. I'm not able to work parents feature properly. As I understand when i navigate to route with parent it will find it but nothing happens. Could you please help and explain?
children: [
{
path: '/',
component: ownCategories,
name: 'documents',
meta: {
breadcrumb: 'All'
},
},
{
path: 'filelist/:categoryId',
component: fileList,
name: 'fileList',
props: true,
meta: {
breadcrumb(){
const name = this.$route.params.name
return {label: name, parent: 'documents'}
}
}
},

@Scrum
Copy link
Owner

Scrum commented Dec 18, 2020

Hi, you can see how the documentation is organized, clone it and play around. Documentation sources are located here, demo can be viewed here. The source code for the demo routing is here.

If you fail, post an example on the github and let me know, I'll try to figure it out

Do not hesitate to reopen the problem if you still have questions

@Scrum Scrum added the question label Dec 18, 2020
@Scrum Scrum closed this as completed Dec 21, 2020
@VladymyrKarpov
Copy link
Author

Hi, thank for reply. This construction
meta: {
breadcrumb: {
label: 'Parent to settings',
parent: 'settings'
}
},
does nothing. Parent route doesn't appear as i expect. https://take.ms/nSVK2M you can check it in your demo https://scrum.github.io/vue-2-breadcrumbs/parent

@Scrum Scrum reopened this Dec 22, 2020
@Scrum
Copy link
Owner

Scrum commented Dec 22, 2020

@VladymyrKarpov Thanks, good find

@Scrum Scrum added bug and removed question labels Dec 22, 2020
@Scrum Scrum added this to the 0.7.11 milestone Dec 22, 2020
@Scrum Scrum closed this as completed in e03fda9 Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants