Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Searchbar doesn't update after changing input

$
0
0

@a7mdFo2ad wrote:

i have implemented search bar and it’s working but when i change the input doesn’t return anything
ts file

    getClinc(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

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>