Created
May 27, 2015 01:47
-
-
Save ch4/67f0f0477bb0be8958dc to your computer and use it in GitHub Desktop.
close all angular modal programmatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: https://github.com/angular-ui/bootstrap/issues/1173 | |
$('.modal-content > .ng-scope').each(function() | |
{ | |
try | |
{ | |
$(this).scope().$dismiss(); | |
} | |
catch(_) {} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment