I\'ve got a modal:
You can simply close the modal by below way.
First when we open the Modal
this.modalService.open(content, { size: "lg" }).result.then(
result => {
this.closeResult = `Closed with: ${result}`;
},
reason => {
this.closeResult = `Dismissed ${this.getDismissReason(reason)}`;
}
After That in TS For closing use this
this.modalService.dismissAll();