import { Component, OnInit, OnChanges, Input, SimpleChanges } from '@angular/core';

@Component({
  selector: 'sts-breadcrumb',
  templateUrl: './breadcrumb.component.html',
  styleUrls: ['./breadcrumb.component.scss']
})
export class BreadcrumbComponent implements OnInit, OnChanges {
  @Input() breadcrumbData;

  constructor() { }

  ngOnInit() {
  }

  
  ngOnChanges(changes: SimpleChanges) {
    if (changes.breadcrumbData) {
      this.breadcrumbData = changes.breadcrumbData.currentValue;
    }
  }
}
