import { ChangeDetectionStrategy , Component , Input } from '@angular/core' ; @ Component ( { selector : 'ux-breadcrumbs' , templateUrl : './breadcrumbs.component.html' , changeDetection : ChangeDetectionStrategy . OnPush } ) export class BreadcrumbsComponent { /** The list of breadcrumbs to display. */ @ Input ( ) crumbs : ReadonlyArray < Breadcrumb > ; clickCrumb ( event , crumb ) { if ( crumb . onClick ) { crumb . onClick . call ( null , event ) ; } } } export interface Breadcrumb { title : string ; routerLink ? : string ; fragment ? : string ; queryParams ? : any ; onClick ? : ( event : MouseEvent ) => void ; }