I'm using bootstrap 3 modal as a dialog confirmation in my AngularJS App. When i hide the modal and redirect the backdrop of the modal still remains.
$scope.delete = function () {
DataService.delete()
.then(function () {
$("#delete").modal("hide");
$location.path("/");
});
}
I have tried using the callback on hidden
$("#delete").on('hidden.bs.modal', function () {
$location.path("/");
}
But the delay in this is a lot.
Is there a better way to do this?