I am trying to close the modal that was presented to me through the open(content) function as shown in the example in the Documentation of ng-boostrap. In the website, it me
I followed the doc from ng-bootstrap with Angular 6. Finally I found the solution changing one line from the original example:
modal-options.html
Modal title
One fine body…
I changed from this let-modal to this let-d="dismiss" and also this 2 lines:
modal-options.ts
constructor(private modalService: NgbModal) {}
openLg(content) {
this.modalService.open(content, { size: 'lg' });
}