-
-
Notifications
You must be signed in to change notification settings - Fork 62
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
When click the Home link of breadcrumb routing is not working #49
Comments
can't we retrieve the routing values of breadcrumb object? |
I also want to change breadcrumb routing dynamically, in my situation, I route back to different component based on user's role. |
@roshanjayawardena @ShamalFdo129 Can you be able to provide a http://stackblitz.com/ minimal example with your use case for updating the breadcrumb route dynamically. |
Hi Uday, @udayvunnam , Please refer the below link Please refer above screenshot. Basically, we navigate a router link based on the user's role. So we want to change home breadcrumb routing dynamically. Please have a look and appreciate if you could suggest a workaround. Thank you |
Hi Uday, Please could you please give us a update Thank you. |
@roshanjayawardena thanks for the reproducible example. I will rollout a fix likely this week |
@udayvunnam Thanks and Regards, |
@roshanjayawardena @ShamalFdo129 I am coming up with a solution like below.
|
Let me know if you need any other context as part of this. |
@roshanjayawardena @ShamalFdo129 upgrade to the latest version i.e 6.3.0 to get this functionality - https://github.com/udayvunnam/xng-breadcrumb/releases/tag/v6.3.0 |
Hi uday, Thanks for your time. I updated the latest package and applied the above solution. this.breadcrumbService.set('Home', { what is the actual parameter we want to pass instead of 'Home' Thank you |
@roshanjayawardena Thanks for raising this bug. There was a difference in how the breadcrumb is handled for root and is fixed now. One fix you have to do from the application code is to pass the correct path or Alias to The below code should work for you with [email protected]
|
@udayvunnam Thanks and Regards, |
@udayvunnam Thank you very much for your support and for spending your time on this. This feature helped me to achieve my task.I also believe this feature helps the whole community. Thanks |
This is my code app-routing.module.ts
path: '',
component: LayoutComponent,
canActivate: [AuthGuardService],
data: { breadcrumb: 'Home' },
children: [
// dashboard routes
{
path: 'designer',
loadChildren: () =>
import('./Modules/features/designer/designer.module').then(
(m) => m.DesignerModule
),
data: { breadcrumb: { skip: true } }
},
This is the code of child routing
const routes: Routes = [
{
path: 'dashboard',
component: DesignerDashboardComponent,
data: { breadcrumb: { skip: true } }
},
{
path: 'marketPlace',
component: MarketPlaceComponent,
},
when I click breadcrumb home link, routing is not working
The text was updated successfully, but these errors were encountered: