Ionic popup


#1

how to show any additional message (not sub-titile, to show like success message or errror message) in same ionic popup


#2

Have a look at this:

http://ionicframework.com/docs/api/service/$ionicPopup/


#3

you can set a scope and a html-template to your popup --> in the template you can add dom-nodes for success or error stuff and show them only if you set a flag on the scope. so you can work with it like you would do it in a normal controller and template.


#4

$scope.showAlert = function() {
var alertPopup = $ionicPopup.alert({
template: ’ Success’
});
alertPopup.then(function(res) {

});
};