Toying around with the NgbModal and want to trigger the open method -> open(content: string | TemplateRef
<- from somew
You can now do the following...
Lets say you have a model component Confirm model that you want to use it in any other component.
Ensure that your model component template is inside div tag and not the ng-template tag.
You can then use the following open method from any other component.
modalReference: NgbModalRef;
constructor(private modalService: NgbModal) { }
this.modalReference = this.modalService.open(ModelComponentName, {backdrop: 'static',size: 'lg', keyboard: false, centered: true});