UNPKG

ngx-admin-lte

Version:

AdminLTE theme for angular

26 lines (22 loc) 702 B
import { Component } from '@angular/core'; import { Router } from '@angular/router'; 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: BreadcrumbService) { // getting the data from the services this.breadServ.getCurrent().subscribe((data) => { this.display = data.display; this.header = data.header; this.description = data.description; this.levels = data.levels; }); } }