Skip to content

Instantly share code, notes, and snippets.

@ch4
Created May 27, 2015 01:47
Show Gist options
  • Save ch4/67f0f0477bb0be8958dc to your computer and use it in GitHub Desktop.
Save ch4/67f0f0477bb0be8958dc to your computer and use it in GitHub Desktop.
close all angular modal programmatically
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