Angular UI Bootstrap Modal - jak zapobiec otwarciu wielu modów

Zaimplementowałem dyrektywę modalną i ustawiłem$modal.open opcja tło dofalse. Jednak teraz mogę uruchomić wiele modów, aby je otworzyć. Czy istnieje sposób, aby zapobiec wyzwoleniu przycisku wyzwalania po otwarciu jednego modala?

var accountSummaryCtrl = function ($scope, $modal, $log) {

    $scope.open = function () {

        var modalInstance = $modal.open({
            templateUrl: '/Apps/generic/modal/Templates/AccountSummary.html',
            controller: ModalInstanceCtrl,
            backdrop: false
        });

        modalInstance.result.then(function (selectedItem) {
            $scope.selected = selectedItem;
        }, function () {
            $log.info('Modal dismissed at: ' + new Date());
        });
    };
};

Dzięki

questionAnswers(3)

yourAnswerToTheQuestion