xng-breadcrumb icon indicating copy to clipboard operation
xng-breadcrumb copied to clipboard

Dynamically add an item into breadcrumb

Open curiousThinker opened this issue 3 years ago • 5 comments

Currently the breadcrumb is generated based on route. If my modules are on the same hierachy, is it possible to display them together in the breadcrumb ? E.g. { path: "", loadChildren: () => import('@modules/home/home.module').then(mod => mod.HomeModule), data:{ breadcrumb:'home'} }, { path: "family", loadChildren: () => import('@modules/family/family.module').then(mod => mod.FamilyModule), data:{ breadcrumb:'family'} }, { path: "friend", loadChildren: () => import('@modules/friend/friend.module').then(mod => mod.FriendModule), data:{ breadcrumb:'friend'} },

For components within familyModule, the breadcrumb will be: family / familyComponent.

But is it possible to make the breadcrumb to be something like this ? home / family / familyComponent

On the other hand, this need to be configurable as my friendComponent breadcrumb would like to remain as: friend / friendComponent

curiousThinker avatar Jan 20 '22 06:01 curiousThinker

Hello 👋 @curiousThinker
Thank you for raising an issue. We will investigate into the issue and get back to you as soon as possible. Please make sure you have given us as much context as possible.
Feel free to raise a PR if you can fix the issue. Check the local development guide

github-actions[bot] avatar Jan 20 '22 06:01 github-actions[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 10 '22 18:06 stale[bot]

not stale

udayvunnam avatar Aug 03 '22 05:08 udayvunnam

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 03 '22 14:12 stale[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 15 '23 15:10 stale[bot]