I have put a click in a modal pop up from the controller. The buttons are done as so:
Almost the entire time I have tested the web / phonegap app works perfectly. But once I run on the device it seems its a hit or miss with individuals instances never the same as well as some times working perfectly. I thought it was something to do with loading the data from the services or the controller but all of my functions and code takes place in what seems to be proper order as from examples I have seen. Here is my code for the init and calling functions of the modal. Thank you so very much for your time and I hope this is just a bug with testing. I am using the cordova run command on my android g5 via usb port.
html:
js:
$scope.select = function(address, website, phone, description, shopName, location, id) {
$scope.closeEat = function() {
modal.remove();
}
var modal = $ionicModal.fromTemplate(’
‘+ shopName +’
scope: $scope,
animation: ‘slide-left-right’
});
if(typeof modal != 'undefined'){
modal.show();
}
}