1
I’m making a request, and I’m waiting for a return, however it is asynchronous, may or may not, in my case I just want to display a message on the screen.
Time she send undefined
and hours returns me the correct message.
I need to make sure that this message exists how to do this ?
this.loginprovider.validaLogin(user).subscribe(data => this.response = data);
if(!this.response.sucesso){
this.showAlert("ERROR!",this.response.mensagem);
}
How to have this certainty ?
A detail:
I’m developing a hybrid app using the latest version of Ionic (Ionic 3) and angular (angular 4);