AngularJs中得Alert:
var confirmPopup = $ionicPopup.confirm({
title: '已招聘'+numPassing+'/'+num_required+',未招满',
template: '停止招聘将无法重新开启,确定要关闭吗?'
});
confirmPopup.then(function(res) {
if(res) {
object.set('status','stopped');
object.save().then(function(){
HUD('停止招聘!');
})
}else{
}
});
其中
var HUD = function(template){
$ionicLoading.show({
template:template
});
$timeout(function(){
$ionicLoading.hide();
},1500);
};