title: When ever i filtered my list using search it gave me filtered value. when my search bar is empty it doesn't gave me my original list back in ionic
body: <p>When ever i filtered my list using search it gave me filtered value. when my search bar is empty it doesn't gave me my original list back in ionic.</p>
  
  <p>page.html</p>
  
  <pre><code>&lt;ion-searchbar 
    [(ngModel)]="searchTerm"  
    [(ngModel)]="searchList"
    (input)="setFilteredTitle()" 
    class="search"&gt;
  &lt;/ion-searchbar&gt;
  </code></pre>
  
  <p>Page.ts</p>
  
  <pre><code>filterItems(searchTerm){
    return this.result.filter(item =&gt; {
      return item.category_name.toLowerCase().indexOf(searchTerm.toLowerCase()) &gt; -1;
    });
  }
  
  filterList(searchList){
    return this.result2.filter(items =&gt; {
      return items.store_name.toLowerCase().indexOf(searchList.toLowerCase()) &gt; -1;
    });
  }
  
  setFilteredTitle(){
    this.showlist = true
    this.result = this.filterItems(this.searchTerm)
    this.result2 = this.filterList(this.searchList)
  }
  </code></pre>
  
  <p>In ionic, I want to search two different lists from a single search bar I used these functions. It filtered my data. But whenever I remove value from the search bar it doesn't give me back my original List and before refresh doesn't filter again. what's the issue please help thanx in advance.  </p>