0
私は簡単な検索テキストボックスと値には、私は未定義角度2は、未定義のプロパティを読み取ることができません
のプロパティ「SearchCustomerString」を読み取ることができません取得しています。この機能(私はLodashを使用しています)onKeyCustomerSearch(event: any) {
this.SearchCustomerString = event.target.value;
this.customersView = _.clone(this.customersArray);
this.customersView.paginatedCustomers = _.filter(this.customersView.paginatedCustomers, function (x) {
return x.BusinessName.includes(this.SearchCustomerString);
});
}
を呼び出しています変更されました
しかし、これは動作しています!
onKeyCustomerSearch(event: any) {
this.customersView = _.clone(this.customersArray);
this.customersView.paginatedCustomers = _.filter(this.customersView.paginatedCustomers, function (x) {
return x.BusinessName.includes(event.target.value);
});
}
感謝 –