I have the following problem, I am using a api
, which I created, when I use the method find I pass email
and it returns me if found email
e senha
Method
buscarEmail(){
this.webservice.findConta(this.email).subscribe(data=> {
this.listaContas = data ;
console.log(this.listaContas);
});
console.log
[Array(1)] 0 :
Array(1) 0:
{id: 7, email: "[email protected]", senha: "4154512"}
length:1
but when I try to access
Method
buscarEmail(){
this.webservice.findConta(this.email).subscribe(data=> {
this.listaContas = data ;
console.log(this.listaContas.email); //alteirei para .email
});
console.log
undefined