@a7mdFo2ad wrote:
i have implemented search bar and it’s working but when i change the input doesn’t return anything
ts filegetClinc(ev: any) { // console.log(ev) this.initializeItems(); var val = ev.target.value; if (val && val.trim() != '') { this.Clinics = this.Clinics.filter((Clinic => { return (Clinic.name.toLowerCase().indexOf(val.toLowerCase()) > -1); })) } else { } }
Posts: 1
Participants: 1