Skip to content
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

level2 navigation issue #7

Closed
klmuralimohan opened this issue Jun 7, 2019 · 2 comments
Closed

level2 navigation issue #7

klmuralimohan opened this issue Jun 7, 2019 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@klmuralimohan
Copy link

Kindly provide your inputs on this issue https://stackoverflow.com/questions/56488509/ng7-dynamic-breadcrum-issue

@rajaramtt rajaramtt added the help wanted Extra attention is needed label Jun 7, 2019
@rajaramtt
Copy link
Owner

@klmuralimohan Please create stackblitz example

@rajaramtt rajaramtt added the enhancement New feature or request label Jun 7, 2019
@rajaramtt
Copy link
Owner

@klmuralimohan New feature has been implemented available in ng-dynamic-breadcrumb, please check and let me know if there is any issue.

Update the Breadcrumb using NgDynamicBreadcrumbService

import { NgDynamicBreadcrumbService } from 'ng-dynamic-breadcrumb';
constructor(private ngDynamicBreadcrumbService: NgDynamicBreadcrumbService) { }
 
  updateBreadcrumb(): void {
    const breadcrumbs  =  [
      {
        label: 'page {{pageOneID}}',
        url: '/page1/:pageOneID'
      },
      {
        label: 'page {{pageTwoID}}',
        url: 'page1/:pageOneID/page2/:pageTwoID'
      },
      {
        label: 'page {{pageThreeID}}',
        url: 'page1/:pageOneID/page2/:pageTwoID/page3/:pageThreeID'
      },
      {
        label: 'Update Breadcrumb',
        url: ''
      }
    ];
    this.ngDynamicBreadcrumbService.updateBreadcrumb(breadcrumbs);
  }

Stackblitz Demo URL: https://ng-dynamic-breadcrumb.stackblitz.io/page1/1/page2/2/page3/3

NPM avilable version: https://www.npmjs.com/package/ng-dynamic-breadcrumb/v/2.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants