peterbsmyth / ngx-breadcrumbs

Angular 4+ routing breadcrumbs
MIT License
60 stars 43 forks source link

Multiple breadcrumbs being shown none are correct #19

Open jackweldon opened 6 years ago

jackweldon commented 6 years ago

My issue is that I get two breadcrumbs being displayed, one with a link to the root and another which is always plain text. This image should illustrate this issue better: image

Routes.ts { path: 'products', data: { text: 'Products', nav: true, breadcrumbs: true }, children: [ { path: '', component: ProductDirectoryComponent, }, { path: ':group', component: ProductGroupComponent, data: { breadcrumbs: true }, }, { path: ':group/:category', component: ProductCategoryComponent, data: { breadcrumbs: true }, }, ] },

I then place <mc-breadcrumbs></mc-breadcrumbs> within the ProductGroupComponent and in the ProductCategoryComponent because it should only be appearing on those two templates.

Not sure if I have implemented something wrong?