I have created an ionic app where a popup window is opened to ask user to rate this app if he did not rate this app previously. Ionic popup appear correctly, but my problem is, user have to click/tap on cancel button twice to close popup and sometimes click/tap is not working.
My code is given below:
(function() {
$scope.data = {}
var myPopup = $ionicPopup.show({
template: '<input type="range" ng-model="data.user_ratting">',
title: 'Do you want to rate this app?',
scope: $scope,
buttons: [
{ text: 'Cancel' },
{
text: '<b>Save</b>',
type: 'button-positive',
onTap: function(e) {
}
}
]
});
myPopup.then(function(res) {
console.log('Tapped!', res);
});
})();
How can I solve this problem??