question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could someone pls create stackblitz to understand how to use breadcrumb service?

See original GitHub issue

Hi,

I’m trying to show bread crumb like below

Users > View User > John
Users > Edit User > John
Users > View User > John > View Family > Allan 

I’m trying to bind the bread crumb value from api call via activated.snapshot

Bit struggling to understand xng-breadcrumb service. So need help

Update

finally understood how to use breadcrumb service, but still not able to achieve what im looking for I’ve done like below

this.breadcrumbService.set(this.actRoute.snapshot.data.breadcrumb, resp.firstName);

I’m able to get expected string in this.actRoute.snapshot.data.breadcrumb and as well as resp.firstName as per the attachment .

But still not able to show like Users > View User > John

PFA, breadcrum service

Thanks

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
github-actions[bot]commented, Sep 29, 2021

👋 @suriyaJaay Thank you for raising an issue. We will will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.

0reactions
suriyaJaaycommented, Mar 11, 2022

Hi @udayvunnam i just resuming xng-breadcrump integration once again. Here am stuck at one point. so need your help

I’ll try to explain as much as possible. to make it clear pls refer below screenshot my navigation flow will be like

image

problem

i cant show Order Dashboard breadcrumb when navigating to order dashboard to online or offline orders

Current behavior

Order List > Online Orders

Expected behavior

Order List > Order Dashboard > Online orders

Because of current behavior im not able to go back to order dashboard.

Could you pls help me to understand what i am exactly missing ?

apologize for not adding stackblitz, for some reason I can’t access the stackblitz or sandbox.

// lazy module

{
    path: 'orders',
        loadChildren: () => import('./feature/orders/orders.module').then(m => m.OrdersModule),
            data: { breadcrumb: 'List of orders' }
},

// children

const routes: Routes = [

    { path: '', component: OrdersList },
    { path: 'add-new-order', component: AddNewOrder, data: { breadcrumb: 'Add New Customer' } },
    {
        path: 'view-order/:id', component: ViewOrderDetailsComponent, data: {
            breadcrumb: {
                alias: 'orderName'
            }
        }
    },
    {
        path: 'view-order-dashboard/:id', 
        component: ViewOrderDashboardComponent, // this page will have two tabs like 
         Online order and Offline
        data: {
            breadcrumb: 'Dashboard'
        }
    },
    {
        path: ':id/offline-orders/:type', component: OfflineOrderComponent, data: { // offline order
            breadcrumb: 'Offline order'
        }
    },
    {
        path: 'online-orders/:id', component: OnlineOrdersComponent, data: { // online order
            breadcrumb: 'Online order'
        }
    },
];

Thanks for your time

Read more comments on GitHub >

github_iconTop Results From Across the Web

Breadcrumbs - StackBlitz
Editor Preview Both. Sign in. Project. Search. Settings. Switch to Light Theme. Enter Zen Mode. Project. Download Project. Info. Breadcrumbs.
Read more >
What is wrong with my breadcrumbs - Angular 11?
i don't know where im missing. Team, appologize for not adding stackblitz, due to some reason I'm blocked to access stackblitz or any...
Read more >
Angular: Hide Navbar Menu from Login page - Loiane Groner
In this article we will learn two approaches to hide the Navbar Menu when displaying the Login page in Angular projects.
Read more >
Breadcrumbs In Web Design: Examples And Best Practices
On websites that have a lot of pages, breadcrumb navigation can greatly enhance the way users find their way around. In terms of...
Read more >
rxweb-project/rxweb - Gitter
Can I inject a service at the constructor level of my model to use the service that makes the call to the server?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found