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

> When you are opening your dialog, open it with this paramter: It will disable closing the dialog, on clicks outside the dialog.

- Canonical: https://preview.arshadmehmood.com/today-i-learned/angular2/disable-dialog-close-on-click-outsite/
- Section: angular2
- Author: Arshad Mehmood

When you are opening your dialog, open it with this paramter:
```ts
this.dialog.open(AppDialogComponent, {
      disableClose: true
    });
```

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

