I want to run a callback function when modal dialog is missed. It used to work fine, but today I suddenly realize no more and I'm not sure since when. The modal dialog itself still works without problem. So, why is subscribe() part not working?
I'm using ng2-bootstrap-modal (only for modal) together with ngx-bootstrap (for everything else) if it matters. Also, I'm using bootstrap 3.3.7 and angular 4.4.3.
private showConfirm(options, cb?) {
this.dialogSvc.addDialog(ModalConfirmComponent, options).subscribe((isConfirmed) => { if (isConfirmed && cb) cb(); });
}