mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-30 02:01:46 +00:00
IModalServiceInstance missing closed promise (#9083)
* added missing closed promise was missing closed promise * added test for closed promise
This commit is contained in:
@@ -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)=> {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user