Skip to content

Commit 3857ec9

Browse files
committed
Merge pull request #4017 from adam-back/patch-1
docs(popup): increased js readability
2 parents 6f1d20a + 08ed8b5 commit 3857ec9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

js/angular/service/popup.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var POPUP_TPL =
4343
*
4444
* // Triggered on a button click, or some other target
4545
* $scope.showPopup = function() {
46-
* $scope.data = {}
46+
* $scope.data = {};
4747
*
4848
* // An elaborate, custom popup
4949
* var myPopup = $ionicPopup.show({
@@ -67,19 +67,23 @@ var POPUP_TPL =
6767
* }
6868
* ]
6969
* });
70+
*
7071
* myPopup.then(function(res) {
7172
* console.log('Tapped!', res);
7273
* });
74+
*
7375
* $timeout(function() {
7476
* myPopup.close(); //close the popup after 3 seconds for some reason
7577
* }, 3000);
7678
* };
79+
*
7780
* // A confirm dialog
7881
* $scope.showConfirm = function() {
7982
* var confirmPopup = $ionicPopup.confirm({
8083
* title: 'Consume Ice Cream',
8184
* template: 'Are you sure you want to eat this ice cream?'
8285
* });
86+
*
8387
* confirmPopup.then(function(res) {
8488
* if(res) {
8589
* console.log('You are sure');
@@ -95,6 +99,7 @@ var POPUP_TPL =
9599
* title: 'Don\'t eat that!',
96100
* template: 'It might taste good'
97101
* });
102+
*
98103
* alertPopup.then(function(res) {
99104
* console.log('Thank you for not eating my delicious ice cream cone');
100105
* });

0 commit comments

Comments
 (0)