title: How to set value on searchbar Ionic 4?
body: <p>I'm trying to set value on searchbar but cannot see any example, just what i want is to put a value of a list into the searchbar (to do an autocomplete searchbar), i've done this code:</p>
  
  <p>HTML</p>
  
  <pre><code>    &lt;ion-searchbar type="text" debounce="500" animated 
      placeholder="Filtrar por país" color="dark"
      (ionChange)="search($event)" clearInput&gt;&lt;/ion-searchbar&gt;
  &lt;ion-list&gt;
      &lt;ion-item *ngFor="let country of countries" (click)="selectCountry($country)"&gt;
          {{ country }}
      &lt;/ion-item&gt;
  &lt;/ion-list&gt;
  </code></pre>
  
  <p>TS</p>
  
  <pre><code>    search(event) {
      console.log(event)
      this.initializeListCountries();
      console.log(this.countries)
      const val = event.target.value;
      if (val &amp;&amp; val.trim() != '') {
          this.countries = this.countries.filter((country) =&gt; {
              return (country.toLowerCase().indexOf(val.toLowerCase()) &gt; -1);
          })
      }
  }
  
  selectCountry(country) {
      let val = country.target.value;
  
  }
  </code></pre>
  
  <p>Thanks</p>