IModalServiceInstance missing closed promise (#9083)

* added missing closed promise

was missing closed promise

* added test for closed promise
This commit is contained in:
Ritter
2016-05-01 21:58:48 +09:00
committed by Masahiro Wakame
parent 0b96933934
commit 06d3bae8a6
2 changed files with 9 additions and 0 deletions
@@ -181,6 +181,10 @@ testApp.controller('TestCtrl', (
$log.log('modal rendered');
});
modalInstance.closed.then(()=> {
$log.log('modal closed');
});
modalInstance.result.then((closeResult:any)=> {
$log.log('modal closed', closeResult);
}, (dismissResult:any)=> {
+5
View File
@@ -270,6 +270,11 @@ declare namespace angular.ui.bootstrap {
* A promise that is resolved when a modal is rendered.
*/
rendered: angular.IPromise<any>;
/**
* A promise that is resolved when a modal is closed and the animation completes.
*/
closed: angular.IPromise<any>;
}
interface IModalScope extends angular.IScope {