rajaramtt / ng7-dynamic-breadcrumb

Angular 10 Dynamic Breadcrumbs
MIT License
42 stars 31 forks source link

url params not working for child routes #22

Closed tahir-jamil closed 3 years ago

tahir-jamil commented 4 years ago

i want to show id like you have explained in sample but its not working

{
    path: 'page1/:pageOneID/page2/:pageTwoID',
    component: Page2Component,
    data: {
      title: 'page2', 
      breadcrumb: [
        {
          label: 'page {{pageOneID}}',// pageOneID Parameter value will be add 
          url: '/page1/:pageOneID'
        },
        {
          label: 'page {{pageTwoID}}',// pageTwoID Parameter value will be add 
          url: ''
        }
      ]
    },
  },

at the place of pageOneID i want to show actual number instead of text

The url for this image is http://localhost:49158/products/1127 Screenshot 2020-05-30 at 5 42 48 PM it should be like products/1127

rajaramtt commented 4 years ago

If possible Please create stackblitz example link!.

tahir-jamil commented 4 years ago

i have fixed this issue but the problem comes with children routes hear is the link https://stackblitz.com/edit/ng-dynamic-breadcrumb-gqfma2?file=src%2Fapp%2Fapp-routing.module.ts

zeesulehria commented 4 years ago

@rajaramtt any help with this please?

rajaramtt commented 3 years ago

Out of the scope, No longer supported by the author this future, If anyone interested, Please submit PR