@ng-bootstrap/ng-bootstrap#NgbModalRef TypeScript Examples

The following examples show how to use @ng-bootstrap/ng-bootstrap#NgbModalRef. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: message-dialog.component.ts    From dev-manager-desktop with Apache License 2.0 5 votes vote down vote up
static open(service: NgbModal, config: MessageDialogConfig): NgbModalRef {
    return service.open(MessageDialogComponent, {
      centered: true,
      injector: Injector.create({
        providers: [{ provide: 'config', useValue: config }]
      })
    });
  }
Example #2
Source File: progress-dialog.component.ts    From dev-manager-desktop with Apache License 2.0 5 votes vote down vote up
static open(service: NgbModal): NgbModalRef {
    const ref = service.open(ProgressDialogComponent, {
      centered: true,
      backdrop: 'static',
      keyboard: false
    });
    return ref;
  }