From b2caa16c77fe565d429fb9ff8ab1cf224b6055eb Mon Sep 17 00:00:00 2001 From: Andrew Joslin Date: Tue, 10 Jun 2014 12:51:36 -0600 Subject: [PATCH] docs(modal): add note about modal.removed,hidden,shown in $ionicModal --- js/angular/service/modal.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/js/angular/service/modal.js b/js/angular/service/modal.js index aa33c4a96a..d9acafc427 100644 --- a/js/angular/service/modal.js +++ b/js/angular/service/modal.js @@ -7,6 +7,13 @@ * temporarily. Usually used for making a choice or editing an item. * Note that you need to put the content of the modal inside a div with the class `modal`. * + * Hint: Be sure to call [remove()](#remove) when you are done with each modal + * to clean it up and avoid memory leaks. + * + * Note: a modal will broadcast 'modal.shown', 'modal.hidden', and 'modal.removed' events from its originating + * scope, passing in itself as an event argument. Note: both modal.removed and modal.hidden are + * called when the modal is removed. + * * @usage * ```html *