ionic-filter-bar

Angular 2 search filter works for one property but not for all properties of an array

核能气质少年 提交于 2020-01-17 06:52:33
问题 In Angular 1, there is filter attribute along with ng-repeat as mentioned here. But in Angular 2 there is new functionality named "pipe" . I have used pipes already but still I can't search through all properties like in the Angular 1 version. However it is working fine for any 1 property, but for whole array, it's not working. I got following error when i search something. ERROR TypeError: Cannot read property 'includes' of null at http://localhost:8100/build/main.js:118751:76 at Array.some