-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Set multiple breadcrumbs regardless of route #163
Comments
Hello 👋 @AndriesN |
I want this functionality too |
@AndriesN @gabrielbergoc Can you confirm the below understanding of the requirement Instead of
we want to make it easy to define the dynamic breadcrumbs? |
That would work for me! |
Yes, that would be great! |
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. |
not stale |
I also want this feature. Basically, the requirement is that some elements exist on a path without a parent component, but logically are part of a parent component. Example
I want breadcrumb like this, but the actual path to {
path: '/quiz/session',
data: {breadcrumb: {alias: 'quizName'}}
children: [
{
path: ':id',
component: SessionComponent,
data: {breadcrumb: {alias: 'sessionName'}}
}
]
} Now with this path, I can only set the breadcrumb to the If support to add multiple breadcrumbs is given, it can be something like this.breadcrumbService.add([['/quiz', 'Quiz'], ['@quizName', this.getQuizName()], ['/quiz/session', 'Session'], ['@sessionName', this.getSessionName()]); |
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. |
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. |
Any update on this? |
🧩 Feature request
Set multiple breadcrumbs regardless of route
Description
I would like to have the ability to add multiple breadcrumbs when I'm on a url.
Example:
route is
localhost:4200/path1
then when I resolve data, I use that data to build my own breadcrumb path, I cannot do that as of right now. I can only set one breadcrumb using the
.set()
method.Describe the solution you'd like
I'd like a solution where I can inject the breadcrumbService and use an
.add()
function (maybe?) so I can add multiple breadcrumbs.Describe alternatives you've considered
I tried using multiple empty route paths with a breadcrumb, also tried ways to access the breadcrumb[] object but could not figure out how I can add multiple breadcrumbs to the array.
The text was updated successfully, but these errors were encountered: