From 7494b0525eeddeee0e1ce0694ef5b217bdb24dff Mon Sep 17 00:00:00 2001 From: sanderheling Date: Fri, 9 May 2014 16:31:22 +0200 Subject: [PATCH] docs($ionicModal): add docs for modal.removed and modal.hide Closes #1320 --- js/angular/service/modal.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index 499c769cff..064f5b8f79 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -38,6 +38,14 @@ * $scope.$on('$destroy', function() { * $scope.modal.remove(); * }); + * // Execute action on hide modal + * $scope.$on('modal.hide', function() { + * // Execute action + * }); + * // Execute action on remove modal + * $scope.$on('modal.removed', function() { + * // Execute action + * }); * }); * ``` */