Answers for "how to make search bar suggestions in ionic"

3

Angular ion-search

filterItems(searchTerm) {
    return this.items.filter(item => {
      return item.title.toLowerCase().indexOf(searchTerm.toLowerCase()) > -1;
    });
  }
Posted by: Guest on June-05-2020

Browse Popular Code Answers by Language