Last updated 5 years ago
To use Breadcrumbs, first import SharedModulein your module.
SharedModule
import {SharedModule} from '@gaxon/modules'; @NgModule({ ... imports: [SharedModule, ...], ... }) export class YourAppModule { }
<gx-breadcrumbs [data]="breadcrumb"></gx-breadcrumbs>
import { Component} from '@angular/core'; @Component({ selector: 'app-bs-breadcrumb', templateUrl: './bs-breadcrumb.component.html' }) export class BsBreadcrumbComponent { breadcrumb = [ {label: 'Home'}, {label: 'Library'}, {label: 'Data', active: true} ]; constructor() { } }
<gx-breadcrumbs displayAs="nav" [data]="breadcrumb"></gx-breadcrumbs>