2.0.1 • Published 9 months ago

@schaman/angular-breadcrumb v2.0.1

Weekly downloads
-
License
-
Repository
github
Last release
9 months ago

@schaman/angular-breadcrumb

This module provides custom breadcrumb functionality. To use the module do 3 easy steps.

Provide the module for root.

SchamanBreadcrumbModule.forRoot();

Inject the order service on component level in your page. This will control the order of the breadcrumbs. Also use the *schamanBreadcrumb structural directive.

@Component({
  template: `<a *schamanBreadcrumb routerLink="Homepage">Homepage</a>`,
  selector: 'test-1',
  providers: [BreadcrumbOrderService],
})
class RouterPageComponent {}

Use the breadcrumb anywhere.

@Component({
  template: `
    <schaman-breadcrumb [separator]="sep"></schaman-breadcrumb>
    <ng-template #sep let-i="index">&gt;</ng-template>
    <router-outlet></router-outlet>
  `,
})
class LayoutComponent {}

Running unit tests

Run nx test angular-breadcrumb to execute the unit tests.

2.0.1

9 months ago

2.0.0

10 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago