Hello!
I have a problem to show my modal.
When I build my app with this command ionic build android and I install this in my device, my code works.
BUT, if I build my app with this command ionic build android --prod , I can’t to show the Modal. I tap on the label with (click) and it not works.
This is my code:
let modal = this.modalCtrl.create(MyModal, {
"endereco_escolhido": this.endereco_escolhido,
"endereco_buscado": this.endereco_buscado
});
//Especificando ação de retorno de informação escolhida na tela
modal.onDidDismiss((data) => {
console.log(data);
if (data) {
this.endereco_buscado = data.endereco_buscado;
this.endereco_escolhido = data.endereco_escolhido;
this.endereco_formatado = this.endereco_escolhido.logradouro + ", " + this.endereco_escolhido.numero + ", " + this.endereco_escolhido.bairro.nome + ", " + this.endereco_escolhido.cidade.nome + "/" + this.endereco_escolhido.estado.UF;
this.listarLojas();
this.text_informativo = "MUDAR";
} else {
if (!this.endereco_escolhido) {
this.endereco_formatado = "Endereço";
this.text_informativo = "INFORMAR";
}
}
});
//Abrindo modal
modal.present();
Thanks!