Close Dialog from typescript Use this code: //constructor constructor(public dialogRef: MatDialogRef<any>) { } //method to close close() { this.dialogRef.close(); }