Skip to content

DialogService.addDialog().subscribe() not working? #64

@miliu99

Description

@miliu99

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(); });
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions