Hi, Can you help me out in understanding the problem? I created a plunker to test your case:
http://plnkr.co/edit/qzscva8fo6PZzpkTGrPW?p=preview It seems to work fine. When I clear the input, filter doesn't apply. Thanks, Vaibhav Gupta On Sunday, 15 November 2015 16:49:32 UTC+5:30, Mr. Adam wrote: > > hello every one > > i have a list and input to filter it : > > <input ng-model="searchCode" class="form-control" placeholder="Search By > Code" type="number"/> > > <tr ng-repeat="item in items | filter : {Code:searchCode}"></tr> > > the filter work fine when I write any number for the searchCode but when I > remove the filtered code the list is not appear... > > I think because the filtered become null or empty can anyone tells me how > to make the filter not accept null or empty from the input to fix this > error > > regards /Adam > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
