import { Component } from '@angular/core' ; import { BreadcrumbService } from '../../services/breadcrumb.service' ; @ Component ( { selector : 'app-breadcrumb' , templateUrl : './breadcrumb.component.html' } ) export class BreadcrumbComponent { public display = false ; public header = '' ; public description = '' ; public levels : Array < any > = [ ] ; constructor ( private breadServ ) { this . breadServ . getCurrent ( ) . subscribe ( ( data ) => { this . display = data . display ; this . header = data . header ; this . description = data . description ; this . levels = data . levels ; } ) ; } }