[ADF-966] added the ability to reflect data change on datatable (#2042)

* [ADF - 966] added a setTimeout to test the async loading of datatable

* [ADF-966] added the ability to reflect changes on data change

* [ADF-917] changed due PR
This commit is contained in:
Vito
2017-07-05 04:39:50 -07:00
committed by Eugenio Romano
parent 16b8f9a5d7
commit 568ae1f32d
4 changed files with 65 additions and 6 deletions

View File

@@ -133,6 +133,8 @@ export class DataTableComponent implements AfterContentInit, OnChanges, DoCheck
if (this.isPropertyChanged(changes['data'])) {
if (this.isTableEmpty()) {
this.initTable();
}else {
this.data = changes['data'].currentValue;
}
return;
}