How to use the ngx-bootstrap.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 aviabird / angularhunt / src / app / app.module.ts View on Github external
FooterComponent,
    AdminPageComponent,
    UrlValidatorDirective,
    AdComponent,
  ],
  imports: [
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,
    HttpModule,
    JsonpModule,
    routing,
    StoreModule.provideStore(reducer),
    StoreDevtoolsModule.instrumentStore(instrumentOptions),
    // StoreLogMonitorModule,
    ModalModule.forRoot(),
    BsDropdownModule.forRoot(),
    ShareButtonsModule.forRoot(),
    EffectsModule.run(ProjectEffects),
    EffectsModule.run(UserEffects),
    EffectsModule.run(TopicEffects),
    AngularFireModule.initializeApp(firebaseConfig, {
      method: AuthMethods.Redirect
    }),
  ],
  providers: [
    TopicActions,
    UserActions,
    ProjectActions,
    CanActivateViaAuthGuard,
    ProjectService,
    AuthenticationService,
github syndesisio / syndesis / app / ui / src / app / integration / list / list.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        CommonModule,
        SyndesisCommonModule.forRoot(),
        RouterTestingModule.withRoutes([]),
        ModalModule.forRoot(),
        BsDropdownModule.forRoot(),
        SyndesisStoreModule,
        ActionModule,
        ListModule,
        NotificationModule
      ],
      declarations: [IntegrationStatusComponent, IntegrationListComponent]
    }).compileComponents();
  }));
github aspnetboilerplate / eventcloud / aspnet-core-angular / angular / src / account / account.module.ts View on Github external
import { RegisterComponent } from './register/register.component';
import { AccountLanguagesComponent } from './layout/account-languages.component';
import { LoginService } from './login/login.service';
import { RegisterTenantComponent } from './register/register-tenant.component';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        HttpClientModule,
        HttpClientJsonpModule,
        AbpModule,
        SharedModule,
        ServiceProxyModule,
        AccountRoutingModule,
        ModalModule.forRoot()
    ],
    declarations: [
        AccountComponent,
        TenantChangeComponent,
        TenantChangeModalComponent,
        LoginComponent,
        RegisterComponent,
        AccountLanguagesComponent,
        RegisterTenantComponent
    ],
    providers: [
        LoginService
    ]
})
export class AccountModule {
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / layout / navigation / navigation.component.spec.ts View on Github external
NavigationSearchComponent,
        StreamStatusComponent,
        AppTypeComponent,
        TaskStatusComponent,
        RolesDirective
      ],
      imports: [
        CommonModule,
        FormsModule,
        ReactiveFormsModule,
        BrowserModule,
        RouterTestingModule.withRoutes([]),
        BrowserAnimationsModule,
        SharedModule,
        BsDropdownModule.forRoot(),
        ModalModule.forRoot()
      ],
      providers: [
        { provide: SharedAboutService, useValue: aboutService },
        { provide: AppsService, useValue: appsService },
        { provide: StreamsService, useValue: streamsService },
        { provide: TasksService, useValue: tasksService },
        { provide: AuthService, useValue: authService }
      ]
    }).compileComponents();
  }));
github redplane / ApiMultipartFormFormatter / example / front-end / ngx-example / src / modules / upload / upload.module.ts View on Github external
//#endregion

//#region Module declaration

@NgModule({
  providers: [
    BsModalService
  ],
  imports: [
    CommonModule,
    FormsModule,
    UploadRouteModule,
    SharedModule,
    FileUploadModule,
    ModalModule.forRoot()
  ],
  declarations: [
    AttachmentListUploadComponent,
    BasicUploadComponent,
    NestedInfoUploadComponent,
    UploadMasterLayoutComponent,
    ValueValidator
  ],
  exports: [
    AttachmentListUploadComponent,
    BasicUploadComponent,
    NestedInfoUploadComponent,
    UploadMasterLayoutComponent,
    ValueValidator
  ]
})
github eclipse / winery / org.eclipse.winery.frontends / app / tosca-management / src / app / wineryMainModules / admin / admin.module.ts View on Github external
CommonModule,
        FormsModule,
        RepositoryModule,
        SelectModule,
        WineryDuplicateValidatorModule,
        WineryLoaderModule,
        WineryModalModule,
        WineryTableModule,
        WineryUploaderModule,
        WineryNamespaceSelectorModule,
        WineryFileComparisonModule,
        ProgressbarModule.forRoot(),
        AlertModule.forRoot(),
        AccordionModule.forRoot(),
        CollapseModule.forRoot(),
        ModalModule.forRoot(),
        AdminRouterModule,
        WineryFeatureToggleModule
    ],
    declarations: [
        NamespacesComponent,
        LoggerComponent,
        TypeWithShortNameComponent,
        ConsistencyCheckComponent,
        ErrorElementToLinkPipe,
        AccountabilityComponent,
        AuthorizationComponent,
        AuthenticationComponent,
        ConfigurationComponent,
        FeatureConfigurationComponent,
        ProvenanceComponent,
        EdmmMappingsComponent,
github patternfly / patternfly-ng / src / app / modal / about-modal / about-modal.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        FormsModule,
        ModalModule.forRoot()
      ],
      declarations: [AboutModalComponent]
    })
      .compileComponents()
      .then(() => {
        fixture = TestBed.createComponent(AboutModalComponent);
        comp = fixture.componentInstance;
        comp.config = config;
        fixture.detectChanges();
      });
  }));
github springstack / bootstack / bootstack-web / src / main / angular / src / app / pages / system / settings / method / system.settings.method.module.ts View on Github external
const SYSTEM_SETTINGS_METHOD_ROUTES: Routes = [
    {path: '', component: SystemSettingsMethodComponent}
];

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        ReactiveFormsModule,
        CustomFormsModule,
        BusyModule,
        TranslateModule,
        TooltipModule.forRoot(),
        ToastyModule.forRoot(),
        PaginationModule.forRoot(),
        ModalModule.forRoot(),
        RouterModule.forChild(SYSTEM_SETTINGS_METHOD_ROUTES)
    ],
    exports: [],
    declarations: [
        SystemSettingsMethodComponent
    ],
    providers: [
        SystemSettingsMethodService
    ],
})
export class SystemSettingsMethodModule {
}
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / layout / body / body.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [
        BodyComponent
      ],
      imports: [
        NgxPaginationModule,
        ModalModule.forRoot()
      ],
      providers: []
    })
      .compileComponents();
  }));
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / streams / stream-deploy / builder / builder.component.spec.ts View on Github external
PagerComponent,
        DATAFLOW_PAGE,
        DATAFLOW_LIST,
        LoaderComponent,
        AppTypeComponent,
        StreamDeployFreeTextComponent,
        StreamDeployBuilderComponent,
        StreamDeployBuilderErrorsComponent,
        FocusDirective,
        TippyDirective
      ],
      imports: [
        FormsModule,
        ReactiveFormsModule,
        TooltipModule.forRoot(),
        ModalModule.forRoot(),
        BsDropdownModule.forRoot(),
        NgxPaginationModule,
        ClipboardModule,
        RouterTestingModule.withRoutes([])
      ],
      providers: [
        { provide: StreamsService, useValue: streamsService },
        { provide: ActivatedRoute, useValue: activeRoute },
        { provide: SharedAboutService, useValue: sharedAboutService },
        { provide: NotificationService, useValue: notificationService },
        { provide: RoutingStateService, useValue: routingStateService },
        { provide: StreamDeployService, useValue: streamDeployService },
        { provide: LoggerService, useValue: loggerService },
        ClipboardService,
        BlockerService
      ]