How to use the ngx-bootstrap.BsDropdownModule.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 webcat12345 / ngx-intl-tel-input / projects / ngx-intl-tel-input / src / lib / ngx-intl-tel-input.module.ts View on Github external
import { NgModule, ModuleWithProviders } from '@angular/core';
import { NgxIntlTelInputComponent } from './ngx-intl-tel-input.component';
import { CommonModule } from '@angular/common';
import { BsDropdownModule, TooltipModule } from 'ngx-bootstrap';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgxIntlTelInputService } from './ngx-intl-tel-input.service';

@NgModule({
	declarations: [NgxIntlTelInputComponent],
	imports: [
		CommonModule,
		FormsModule,
		ReactiveFormsModule,
		BsDropdownModule.forRoot(),
		TooltipModule.forRoot()
	],
	exports: [NgxIntlTelInputComponent]
})
export class NgxIntlTelInputModule {
	static forRoot(): ModuleWithProviders {
		return {
			ngModule: NgxIntlTelInputModule,
			providers: [NgxIntlTelInputService]
		};
	}
}
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 ceph / ceph / src / pybind / mgr / dashboard_v2 / frontend / src / app / ceph / rgw / rgw-daemon-list / rgw-daemon-list.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ RgwDaemonListComponent ],
      imports: [
        DataTableModule,
        HttpClientTestingModule,
        BsDropdownModule.forRoot(),
        HttpClientModule
      ],
      providers: [ RgwDaemonService ]
    })
    .compileComponents();
  }));
github mjangir / angular-admin-panel / src / app / admin / access / permission / permission.module.ts View on Github external
const containers = [
  PermissionComponent,
  ...fromContainers.containers
]

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    TranslateModule,
    NgxDatatableModule,
    CommonPipesModule,
    TooltipModule.forRoot(),
    BsDropdownModule.forRoot(),
    SweetAlert2Module,
    AngularMultiSelectModule,
    PermissionRoutingModule
  ],
  declarations: containers,
  providers: [
    PermissionService,
    PermissionApiClient,
    AccessPermissionSandbox
  ]
})
export class PermissionModule { }
github mjangir / angular-admin-panel / src / app / admin / access / role / role.module.ts View on Github external
const containers = [
  RoleComponent,
  ...fromContainers.containers
]

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    TranslateModule,
    NgxDatatableModule,
    CommonPipesModule,
    TooltipModule.forRoot(),
    BsDropdownModule.forRoot(),
    SweetAlert2Module,
    AngularMultiSelectModule,
    RoleRoutingModule
  ],
  declarations: containers,
  providers: [
    RoleService,
    RoleApiClient,
    AccessRoleSandbox,
    AccessPermissionSandbox
  ]
})
export class RoleModule { }
github ceph / ceph / src / pybind / mgr / dashboard / frontend / src / app / ceph / rgw / rgw-user-list / rgw-user-list.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [
        RgwUserListComponent,
        RgwUserDetailsComponent
      ],
      imports: [
        HttpClientModule,
        BsDropdownModule.forRoot(),
        TabsModule.forRoot(),
        SharedModule
      ]
    })
    .compileComponents();
  }));
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / about / about / about.component.spec.ts View on Github external
beforeEach( async(() => {
    activeRoute = new MockActivatedRoute();
    TestBed.configureTestingModule({
      imports: [
        RouterTestingModule.withRoutes([]),
        ClipboardModule,
        BsDropdownModule.forRoot(),
        ReactiveFormsModule,
        TooltipModule.forRoot(),
        FormsModule,
        NgxPaginationModule,
      ],
      declarations:   [
        AboutComponent,
        AboutDetailsComponent,
        LoaderComponent,
        DATAFLOW_PAGE,
        DATAFLOW_LIST,
        PagerComponent,
        TippyDirective
      ],
      providers: [
        { provide: AboutService, useValue: aboutService },
github temelt / issue-management / src / webui / src / app / app.module.ts View on Github external
FooterComponent,
    HeaderComponent,
    SidebarComponent,
    NotfoundComponent,
    LoginComponent,
    RegisterComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    AppRoutingModule,
    NgxDatatableModule,
    CollapseModule.forRoot(),
    BsDropdownModule.forRoot(),
    ModalModule.forRoot(),
    PaginationModule.forRoot(),
    BsDatepickerModule.forRoot(),
    ToastNoAnimationModule,
    ToastrModule.forRoot({
      toastComponent: ToastNoAnimation,
      maxOpened: 1,
      autoDismiss: true
    }),
    TranslateModule.forRoot({
      loader: {
        provide: TranslateLoader,
        useFactory: createTranslateLoader,
        deps: [HttpClient]
      }
    })
github magic-software-lab / ngx-magic-table / src / lib / src / component / table / magic-table.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [
        FormsModule,
        BsDropdownModule.forRoot(),
        PaginationModule.forRoot()
      ],
      declarations: [
        NgxMagicTableComponent,
        NgxMagicTableContentPlaceholderComponent,
        NgxMagicTableSortedColumnDirective,
        NgxMagicTableBindDataDirective
      ],
      providers: [
        { provide: NgxMagicTableObjectUtilsService, useClass: MockNgxMagicTableObjectUtilsService }
      ]
    })
    .compileComponents()
    .then(() => {
      fixture = TestBed.createComponent(NgxMagicTableComponent);
      component = fixture.componentInstance;
github spring-cloud / spring-cloud-dataflow-ui / ui / src / app / streams / streams.module.ts View on Github external
import { StreamsUtilsComponent } from './streams-utils/streams-utils.component';
import { StreamsImportComponent } from './streams-utils/streams-import/streams-import.component';
import { StreamsExportComponent } from './streams-utils/streams-export/streams-export.component';
import { StreamsUtilsService } from './streams-utils/streams-utils.service';

@NgModule({
  imports: [
    StreamsRoutingModule,
    SharedModule,
    NgxPaginationModule,
    ReactiveFormsModule,
    AlertModule.forRoot(),
    ModalModule.forRoot(),
    PopoverModule.forRoot(),
    TooltipModule.forRoot(),
    BsDropdownModule.forRoot(),
    AppsModule,
    FloModule,
    AuthModule,
    ProgressbarModule,
  ],
  declarations: [
    StreamsComponent,
    StreamCreateComponent,
    StreamComponent,
    StreamDeployComponent,
    StreamCreateDialogComponent,
    StreamPropertiesDialogComponent,
    StreamNodeComponent,
    StreamGraphDefinitionComponent,
    InstanceDotComponent,
    MessageRateComponent,