Optional_backdropCmptRef: ComponentRef<NgbModalBackdrop>Optional_beforeDismiss: () => boolean | Promise<boolean>The instance of a component used for the modal content.
When a TemplateRef is used as the content or when the modal is closed, will return undefined.
The observable that emits when modal is fully visible and animation was finished. Modal DOM element is always available synchronously after calling 'modal.open()' service.
This observable will be completed after emitting. It will not emit, if modal is closed before open animation is finished.
Closes the modal with an optional result value.
The NgbMobalRef.result promise will be resolved with the provided value.
Optionalresult: anyDismisses the modal with an optional reason value.
The NgbModalRef.result promise will be rejected with the provided value.
Optionalreason: any
The promise that is resolved when the modal is closed and rejected when the modal is dismissed.