Comparison of what is being typed on the screen with an element of the vector - Ionic

0

My code: (this.clients is the reference to the client vector)

getItems(ev: any) {
const val = ev.target.value;

if (val == '') {
  this.clientes = null;
} else if(val  && val.trim() == this.clientes){    
 this.buscarUsuario(ev);
}
    
asked by anonymous 08.10.2018 / 20:05

0 answers