ng8-breadcrumb
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

ng8-breadcrumb

NPM
Downloads Version

Installation

ng8-breadcrumb is available on NPM

$ npm install ng8-breadcrumb --save

Setup & Usage

Once the module has been installed, you need to include Ng8BreadcrumbModule into your root module:

import {Ng8BreadcrumbModule} from 'ng8-breadcrumb';
...
@NgModule({
  imports: [
    ...
    Ng8BreadcrumbModule.forRoot({
        prefix: 'Home' // default 'false'
    }),
    ...
  ],
  ...
})
export class AppModule {}

& Anywhere template component :

<ng8-breadcrumb></ng8-breadcrumb>

Use in the service :

 constructor(private _breadcrumb: BreadcrumbService) {
    _breadcrumb.store('id', 'iPhone x');
  }

And finally route configuration:

{
        path: '...',
        ...
        data: { breadcrumb: 'YOUR TEXT' },
        ...
}

License

ng8-breadcrumb is released under MIT license.

Author

Allahyar

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i ng8-breadcrumb

    Weekly Downloads

    2

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    166 kB

    Total Files

    26

    Last publish

    Collaborators

    • allahyar