mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
angular-ui-bootstrap: update to v0.10.0
adds the new dismissAll() function to the $modalStack service
This commit is contained in:
parent
91904e99be
commit
4db2442e18
@ -162,6 +162,8 @@ testApp.controller('TestCtrl', (
|
||||
$modalStack.close(modalInstance, 'with reason');
|
||||
$modalStack.dismiss(modalInstance);
|
||||
$modalStack.dismiss(modalInstance, 'with reason');
|
||||
$modalStack.dismissAll();
|
||||
$modalStack.dismissAll('with reason');
|
||||
$modalStack.getTop().key.close();
|
||||
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// Type definitions for Angular UI Bootstrap 0.9.0
|
||||
// Type definitions for Angular UI Bootstrap 0.10.0
|
||||
// Project: https://github.com/angular-ui/bootstrap
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@ -264,6 +264,11 @@ declare module ng.ui.bootstrap {
|
||||
*/
|
||||
dismiss(modalInstance: IModalServiceInstance, reason?: any): void;
|
||||
|
||||
/**
|
||||
* Dismiss all open modal instances with an optional reason that will be passed to each instance.
|
||||
*/
|
||||
dismissAll(reason?: any): void;
|
||||
|
||||
/**
|
||||
* Gets the topmost modal instance that is open.
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user