Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 195 Bytes

close-dialog-from-typescript.md

File metadata and controls

13 lines (11 loc) · 195 Bytes

Close Dialog from typescript

Use this code:

  //constructor
  constructor(public dialogRef: MatDialogRef<any>) {
  }
  //method to close
  close() {
    this.dialogRef.close();
  }