File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ var POPUP_TPL =
43
43
*
44
44
* // Triggered on a button click, or some other target
45
45
* $scope.showPopup = function() {
46
- * $scope.data = {}
46
+ * $scope.data = {};
47
47
*
48
48
* // An elaborate, custom popup
49
49
* var myPopup = $ionicPopup.show({
@@ -67,19 +67,23 @@ var POPUP_TPL =
67
67
* }
68
68
* ]
69
69
* });
70
+ *
70
71
* myPopup.then(function(res) {
71
72
* console.log('Tapped!', res);
72
73
* });
74
+ *
73
75
* $timeout(function() {
74
76
* myPopup.close(); //close the popup after 3 seconds for some reason
75
77
* }, 3000);
76
78
* };
79
+ *
77
80
* // A confirm dialog
78
81
* $scope.showConfirm = function() {
79
82
* var confirmPopup = $ionicPopup.confirm({
80
83
* title: 'Consume Ice Cream',
81
84
* template: 'Are you sure you want to eat this ice cream?'
82
85
* });
86
+ *
83
87
* confirmPopup.then(function(res) {
84
88
* if(res) {
85
89
* console.log('You are sure');
@@ -95,6 +99,7 @@ var POPUP_TPL =
95
99
* title: 'Don\'t eat that!',
96
100
* template: 'It might taste good'
97
101
* });
102
+ *
98
103
* alertPopup.then(function(res) {
99
104
* console.log('Thank you for not eating my delicious ice cream cone');
100
105
* });
You can’t perform that action at this time.
0 commit comments