Hey,
I encountered a problem with $ionicPopup : When I open a Popup, and then press the back button, I am not able to close it anymore. This problem happens only if I use the option scope of $ionicPopup :
This Works : (I can close the Popup even if I pressed back button)
deregisterBackButton = $ionicPlatform.registerBackButtonAction(function(e){}, 401);
alertPopup = $ionicPopup.alert({
title: title,
template: '<div class="item-center">' + template + '</div>',
buttons: [
{
text: 'OK',
type: 'button button-clear button-energized',
}
]
});
alertPopup.then(function(res) {
deregisterBackButton();
});
This, does not work : (I can’t close the popup when back button is pressed with scope is used)
deregisterBackButton = $ionicPlatform.registerBackButtonAction(function(e){}, 401);
alertPopup = $ionicPopup.alert({
title: title,
template: '<div class="item-center">' + template + '</div>',
buttons: [
{
text: 'OK',
type: 'button button-clear button-energized',
}
]
});
alertPopup.then(function(res) {
deregisterBackButton();
});
Where does this can come from…?