check if ng bootstrap modal is already open

Discussão em 'Angular' iniciado por Lev, Abril 17, 2025.

  1. Lev

    Lev Guest

    How can I check that a modal window is open ?

    I define a property like this

    modalInstance: NgbModalRef;


    and instantiate the modal like this

    this.modalInstance = this.modalService.open(UpdateModalContent);


    I can't find any native property like this.modalReminderInstance.isOpen

    Continue reading...

Compartilhe esta Página