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

@Component({
  selector: 'app-document-list',
  templateUrl: './document-list.component.html',
  styleUrls: ['./document-list.component.scss']
})
export class DocumentListComponent implements OnInit {
  @Input() data;
  @Input() contractData;
  constructor() { }

  ngOnInit() {
  }

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

}
