1
I have the following problem, I am using a api
,that I created , when I use the method find me step one email
and he returns to me if he found the email
and 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