0
I want that when you click on the "ok" button, it goes to the '/home' template, after closing the modal. Below is the popup code:
var alertPopup = $ionicPopup.alert({
title: '<b>Pedido Enviado</b>',
subTitle: '<b>Aguarde o número do pedido no seu email. Tempo estimado para entrega de 25 a 35 min</b>',
buttons:[
{
text: 'OK',
type: 'button-assertive',
onTap: function(e){
window.localStorage.clear();
$scope.modal.hide();
templateUrl: '/home'
}
}
]
});
Thanks for the information and example @Thiago-ferezim.... your example worked.... I took it again to study and now I understand the stupidity I was doing, but it was really worth
– Alexandre Scrideli