Arshad Mehmood

Search the blog

    Today I Learned

    Disable closing the dialog on clicking outside the dialog window in Angular

    angular2

    When you are opening your dialog, open it with this paramter:

    this.dialog.open(AppDialogComponent, {
          disableClose: true
        });

    It will disable closing the dialog, on clicks outside the dialog.