user2134226 user2134226 - 29 days ago 11
AngularJS Question

How can dismiss all modal dialog in angular js

In old version of angular bootstrap i used to use

https://angular-ui.github.io/bootstrap/#/modal

var myApp = angular.module('app', []).run(function($rootScope, $modalStack) {
$modalStack. dismissAll();
});


I could not find what it is called in latest version

Answer

Replace $modalStack with $uibModalStack

i.e. $uibModalStack.dismissAll()

Comments