esvit / ng-table

Simple table with sorting and filtering on AngularJS
http://esvit.github.io/ng-table
BSD 3-Clause "New" or "Revised" License
2.77k stars 851 forks source link

filter not work all time #924

Open jouana opened 7 years ago

jouana commented 7 years ago

Hi all,

I did something like that

 $scope.tableParams = new NgTableParams({
        count: 10,
        sorting: { id: 'asc' }
      }, {
        dataset: data
      });
       Object.defineProperty($scope, 'recherche', {
            enumerable: true,
            get: function () { return this._recherche; },
            set: function (value) {
              this._recherche = value;
              this.tableParams.filter({$: value});
            }
         });

The purpose is simple I want one a field to filter 2 columns. Then when the value in search filter is precise the list is filtered but if i put just 3 characters nothing happen.

Normally I don't need to reload the table because the dataset is loaded on the start.

Thanks for your reponse, (sorry for my english) Regards

victorhazbun commented 7 years ago

This is happening to me too.