user2134226 user2134226 - 1 year ago 164
AngularJS Question

How can dismiss all modal dialog in angular js

In old version of angular bootstrap i used to use

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

I could not find what it is called in latest version

Answer Source

Replace $modalStack with $uibModalStack

i.e. $uibModalStack.dismissAll()

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download