Arshad Mehmood

Search the blog

    Close Dialog from typescript

    angular21 min read

    Use this code:

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