43cfad85ec2459f483fc99c643e726b3b0941e1f
[portal/sdk.git] /
1 import { Component, OnInit, Input } from '@angular/core';
2
3 @Component({
4   selector: 'app-validate-error-component',
5   templateUrl: './validate-error-component.component.html',
6   styleUrls: ['./validate-error-component.component.css']
7 })
8 export class ValidateErrorComponentComponent implements OnInit {
9   
10   @Input() tableObj : any;
11   
12   errorObj : any = {};
13   constructor() { }
14
15   ngOnInit() {
16     this.errorObj = new Object();
17     this.errorObj = JSON.parse(this.tableObj);
18   }
19
20   ngOnChange()
21   {
22     this.errorObj = new Object();
23     this.errorObj = JSON.parse(this.tableObj);
24   }
25
26 }