Ionic list (SOLVED)


#1

I’m building my first Ionic application and I’m looking to implement search bar in my application. Problem is, I’m a total noob and I have only a basic understanding, how can i do when I click the result of the search autocompletes with what I select

image

in the picture is a little example, so when i click in the result. that is have to appear in the input (autocomplete)


#2

try using angular filter in the list


#3

http://ionicframework.com/docs/api/components/searchbar/Searchbar/


#4

this is what I have

 <ion-item>
                  <ion-label floating>Host</ion-label>
                  <ion-input type="text" name ="Host" [(ngModel)]="user.Host" (input)="email($event)"></ion-input>
                </ion-item>
                <ion-card>
                  <ion-list>
                      <ion-item *ngFor="let item of _fs.result">
                       {{ item.Name }}
                      </ion-item>
                  </ion-list>
                </ion-card>

#5

I already managed to solve it

this.user.Host = item.Name

thx