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
At your modal component you need to add the line :
@ViewChild('exampleModal') public exampleModal:ModalDirective;
At html modal you need to insert in the div root :
#exampleModal="bs-modal"
At your modal component :
onSave(){ this.exampleModal.hide(); }