7e27f93265305337ad83394a497290351b211479
[portal/sdk.git] /
1 import { Component, OnInit, Input } from '@angular/core';
2
3 @Component({
4   selector: 'app-sql-validate-error-dialog-component',
5   templateUrl: './sql-validate-error-dialog.component.html',
6   styleUrls: ['./sql-validate-error-dialog.component.css']
7 })
8 export class SQLValidateErrorDialogComponent 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 }