$scope.myPopup = $ionicPopup.sho({
title: '提示', //提示标题
template: '提示文字' //提示文字
templateUrl: 'templates/please-bet.html', //提示文字链接
scope: $scope,
buttons: [{
text: '确定',
type: 'sale-sure',
onTap: function (e) {
e.preventDefault();
$scope.myPopup.close();
}
}]
})
$scope.myPopup = $ionicPopup.show({
title: '提示',
template:'提示内容!',
// templateUrl: 'templates/system-fail.html',
scope: $scope,
buttons: [{
text: '取消',
type: 'sale-cancel',
onTap: function (e) {
$scope.myPopup.close();
}
}, {
text: '确定',
type: 'sale-sure',
onTap: function (e) {
e.preventDefault();
$state.go("tab.set-enter",{reload:true});
$scope.myPopup.close();
}
}]
})