I want to get the text of an input text and saving it in a variable using a button. To use it as a parameter in a query in firebase.
.html
<input type="text" class="form-control" ng-model="value1" id="textCI" placeholder="C.I." >
component.ts
<--ResultCI =valor input text-->
buscarCI(){
let query=null;
query=this.servicio.getUsuarioFiltro(this.ResultCI);
query.snapshotChanges()
.map(changes=>{
return changes.map(c=>({key:c.payload.key, ...c.payload.val()}))
}).subscribe(contactos =>{
this.contactos=contactos
});
}