Is there any way to remove windowClass from $uibModal?

127 Views Asked by At

My modal popup is open and windowClass is added successfully according to the condition. But I need to toggle windowClass in some conditions. Is there any way to toggle windowClass while modal is open.

Here is the code...

  // AddClass conatin a boolean value
  $scope.openModal = function (addClass) {
      $uibModal.open({
         templateUrl: 'app/Views/modalView.html',
         controller: 'modalController',
         windowClass: addClass ? 'app-modal-window' : ''
      });
  }

  $scope.openModal(true); // Call function to open modal popup
0

There are 0 best solutions below