How to use the ngx-bootstrap/modal.ModalModule.forRoot function in ngx-bootstrap

To help you get started, we’ve selected a few ngx-bootstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ahrnee / nestjs-bff / webclient / src / app / views / notifications / notifications.module.ts View on Github external
import { BadgesComponent } from './badges.component';

// Modal Component
import { ModalModule } from 'ngx-bootstrap/modal';
import { ModalsComponent } from './modals.component';

// Notifications Routing
import { NotificationsRoutingModule } from './notifications-routing.module';

@NgModule({
  imports: [
    CommonModule,
    NotificationsRoutingModule,
    AlertModule.forRoot(),
    ModalModule.forRoot()
  ],
  declarations: [
    AlertsComponent,
    BadgesComponent,
    ModalsComponent
  ]
})
export class NotificationsModule { }
github syndesisio / syndesis / ui / src / app / connections / list / list.component.spec.ts View on Github external
async(() => {
      TestBed.configureTestingModule({
        imports: [
          CommonModule,
          SyndesisCommonModule.forRoot(),
          RouterTestingModule.withRoutes([]),
          ModalModule.forRoot(),
          BsDropdownModule.forRoot(),
          StoreModule,
          NotificationModule
        ],
        declarations: [ConnectionsListComponent]
      }).compileComponents();
    })
  );
github EvictionLab / eviction-maps / src / app / map-tool / feature-overview / feature-overview.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        NgxCarouselModule,
        UiModule,
        TranslateModule.forRoot(),
        ModalModule.forRoot()
      ],
      declarations: [ FeatureOverviewComponent ],
      providers: [ BsModalService, BsModalRef,
        { provide: TranslatePipe, useClass: TranslatePipeMock }
      ]
    })
    .compileComponents();
  }));
github fabric8-ui / fabric8-ui / src / app / profile / overview / spaces / overview-spaces.module.ts View on Github external
import { NgArrayPipesModule } from 'angular-pipes';
import { ModalModule } from 'ngx-bootstrap/modal';
import { Fabric8WitModule } from 'ngx-fabric8-wit';
import { InfiniteScrollModule, WidgetsModule } from 'ngx-widgets';
import { LoadingWidgetModule } from '../../../dashboard-widgets/loading-widget/loading-widget.module';
import { SpacesComponent } from './overview-spaces.component';

@NgModule({
  imports: [
    RouterModule,
    CommonModule,
    Fabric8WitModule,
    FormsModule,
    InfiniteScrollModule,
    LoadingWidgetModule,
    ModalModule.forRoot(),
    WidgetsModule,
    NgArrayPipesModule
  ],
  declarations: [SpacesComponent],
  exports: [SpacesComponent]
})
export class SpacesModule { }
github dockstore / dockstore-ui2 / src / app / myworkflows / myworkflows.module.ts View on Github external
@NgModule({
  declarations: [
    MyWorkflowsComponent,
    RegisterWorkflowModalComponent,
    RefreshWorkflowOrganizationComponent,
    MyWorkflowComponent,
    SidebarAccordionComponent
],
  imports: [
    CommonModule,
    WorkflowModule,
    FormsModule,
    HeaderModule,
    myworkflowRouting,
    ModalModule.forRoot(),
    AccordionModule.forRoot(),
    TabsModule.forRoot(),
    TooltipModule.forRoot(),
    CustomMaterialModule,
    PipeModule
  ],
  entryComponents: [RegisterWorkflowModalComponent],
  providers: [
    {provide: TooltipConfig, useFactory: getTooltipConfig},
  ]
})
export class MyWorkflowsModule { }
github aspnetrun / run-aspnetcore-angular_retired / src / AspnetRun.Web / src / app / shared / shared.module.ts View on Github external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';

import { ControlMessageComponent } from './control-messages/control-message.component';
import { ModalModule } from 'ngx-bootstrap/modal';
import { NgSelectModule } from '@ng-select/ng-select';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ModalModule.forRoot(),
    NgSelectModule,
  ],
  exports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    ModalModule,
    NgSelectModule,
    ControlMessageComponent,
  ],
  declarations: [
    ControlMessageComponent,
  ]
})
export class SharedModule { }
github rucken / core / src / grids / users-grid / users-list-modal / users-list-modal.module.ts View on Github external
import { ModuleWithProviders, NgModule } from '@angular/core';
import { SharedModule } from '@rucken/core';
import { ModalModule } from 'ngx-bootstrap/modal';

import { FooterButtonsModule } from './../../../controls/footer-buttons/footer-buttons.module';
import { UsersGridModule } from './../users-grid.module';
import { UsersListModalComponent } from './users-list-modal.component';

@NgModule({
  imports: [
    ModalModule.forRoot(), SharedModule.forRoot(),
    FooterButtonsModule.forRoot(), UsersGridModule.forRoot()
  ],
  declarations: [
    UsersListModalComponent
  ],
  exports: [UsersListModalComponent],
  entryComponents: [UsersListModalComponent]
})
export class UsersListModalModule {
  static forRoot(): ModuleWithProviders {
    return {
      ngModule: UsersListModalModule,
      providers: []
    };
  }
}
github fabric8-ui / fabric8-ui / src / app / space / create / pipelines / pipelines.module.ts View on Github external
import { FeatureFlagModule } from 'ngx-feature-flag';
import { PipelineModule } from '../../../../a-runtime-console/index';
import { PipelinesRoutingModule } from './pipelines-routing.module';
import { PipelinesComponent } from './pipelines.component';


@NgModule({
  imports: [
    BsDropdownModule.forRoot(),
    CommonModule,
    PipelinesRoutingModule,
    PipelineModule,
    ToolbarModule,
    FeatureFlagModule,
    ModalModule.forRoot(),
    TooltipModule.forRoot()
  ],
  declarations: [PipelinesComponent],
  providers: [
    BsDropdownConfig,
    TooltipConfig
  ]
})
export class PipelinesModule {
  constructor() { }
}
github search-future / miyou.tv / miyoutv / src / app / shared / shared.module.ts View on Github external
import { ModalModule } from 'ngx-bootstrap/modal';

import { QuitModalComponent } from './quit-modal.component';
import { DateExPipe } from './date-ex.pipe';
import { ChinachuService } from './chinachu.service';
import { GaraponService } from './garapon.service';
import { GaraponSiteService } from './garapon-site.service';
import { ImageLoader } from './image-loader.service';
import { StorageService } from './storage.service';
import { WindowService } from './window.service';

@NgModule({
  imports: [
    HttpClientModule,
    ReactiveFormsModule,
    ModalModule.forRoot(),
  ],
  exports: [QuitModalComponent, DateExPipe],
  declarations: [QuitModalComponent, DateExPipe],
  providers: [
    ChinachuService,
    GaraponService,
    GaraponSiteService,
    ImageLoader,
    StorageService,
    WindowService,
  ],
  entryComponents: [QuitModalComponent],
})
export class SharedModule { }
github ceph / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / cluster / cluster.module.ts View on Github external
OsdReweightModalComponent,
    SilenceMatcherModalComponent,
    OsdDevicesSelectionModalComponent,
    OsdCreationPreviewModalComponent
  ],
  imports: [
    CommonModule,
    PerformanceCounterModule,
    TabsModule.forRoot(),
    SharedModule,
    RouterModule,
    FormsModule,
    ReactiveFormsModule,
    BsDropdownModule.forRoot(),
    BsDatepickerModule.forRoot(),
    ModalModule.forRoot(),
    AlertModule.forRoot(),
    TooltipModule.forRoot(),
    TreeModule,
    MgrModulesModule,
    TypeaheadModule.forRoot(),
    TimepickerModule.forRoot(),
    BsDatepickerModule.forRoot(),
    NgBootstrapFormValidationModule,
    CephSharedModule
  ],
  declarations: [
    HostsComponent,
    MonitorComponent,
    ConfigurationComponent,
    OsdListComponent,
    OsdDetailsComponent,