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