@universis/ngx-tables 0.7.7 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1663,6 +1663,7 @@ var AdvancedTableComponent = /** @class */ (function () {
1663
1663
  this._http.get(changes.configSrc.currentValue).toPromise().then(function (config) {
1664
1664
  // set configuration
1665
1665
  _this.config = config;
1666
+ _this.destroy();
1666
1667
  // fetch and redraw
1667
1668
  _this.fetch();
1668
1669
  }).catch(function (err) {
@@ -1673,6 +1674,12 @@ var AdvancedTableComponent = /** @class */ (function () {
1673
1674
  }
1674
1675
  }
1675
1676
  };
1677
+ AdvancedTableComponent.prototype.reset = function (load) {
1678
+ this.query = null;
1679
+ this.destroy();
1680
+ this.autoLoad = !!load;
1681
+ this.ngOnInit();
1682
+ };
1676
1683
  AdvancedTableComponent.decorators = [
1677
1684
  { type: Component, args: [{
1678
1685
  // tslint:disable-next-line: component-selector