Back in the day, I utilized the following link for the old version of angular bootstrap:
https://angular-ui.github.io/bootstrap/#/modal
var myApp = angular.module('app', []).run(function($rootScope, $modalStack) {
$modalStack. dismissAll();
});
Unfortunately, I am unsure of what the equivalent is in the latest version.