Git Product home page Git Product logo

Comments (7)

udayvunnam avatar udayvunnam commented on June 19, 2024

Hi Benny,

It is by design, we have made this pattern. Breadcrumbs can be shown for routes that can be differentiated by the path.

In your example, you would want to choose breadcrumb for path "/courses" on either parent on children. If it's defined at many places for the same path then the deepest child takes priority.

Please check https://github.com/udayvunnam/xng-breadcrumb#where-to-define-breadcrumbs-if-routes-path-have-same-route-specificity

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on June 19, 2024

@Benny739

from xng-breadcrumb.

patogalla avatar patogalla commented on June 19, 2024

It happens the same to me in the last version.
I had to add, twice "breadcrumb" key.
For instance:

{
path: '',
data: { breadcrumb: {breadcrumb: 'Organizations'} },
component: ...
},

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on June 19, 2024

Hi, @patogalla! Can you provide the Angular and xng-breadcrumb version you have faced this issue on?

Also, I see that you are defining it wrongly.

Use one of the below patterns -

from xng-breadcrumb.

patogalla avatar patogalla commented on June 19, 2024

Hi @udayvunnam , thanks for the response.
Here are the versions:
Angular: 8.2.14
xng-breadcrumb: 3.8.0

Regarding the way i defined in my project, is after debuging your code, found that if i put the breadcrumb object inside another breadcrumb object it worked.
I think it has to be with nested routes, and the way it handle it.
I have like a 3 or 4 level depth routing.

Any thing you need, just ask me, i'd be glad to help.

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on June 19, 2024

Hi @patogalla can you try with latest version where a couple of bugs are addressed.
https://github.com/udayvunnam/xng-breadcrumb#angular-version-compatibility

from xng-breadcrumb.

udayvunnam avatar udayvunnam commented on June 19, 2024

@patogalla is that working, upgrading to the latest xng-breadcrumb version

from xng-breadcrumb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.