How to use the @ng-bootstrap/ng-bootstrap.NgbModule.forRoot function in @ng-bootstrap/ng-bootstrap

To help you get started, we’ve selected a few @ng-bootstrap/ng-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 DSpace / dspace-angular / src / app / entity-groups / research-entities / submission / name-variant-modal / name-variant-modal.component.spec.ts View on Github external
beforeEach(async(() => {
    init();
    TestBed.configureTestingModule({
      declarations: [NameVariantModalComponent],
      imports: [NgbModule.forRoot(), TranslateModule.forRoot()],
      providers: [{ provide: NgbActiveModal, useValue: modal }]
    })
      .compileComponents();
  }));
github DSpace / dspace-angular / src / app / shared / form / builder / ds-dynamic-form-ui / ds-dynamic-form-control-container.component.spec.ts View on Github external
beforeEach(async(() => {

    TestBed.overrideModule(BrowserDynamicTestingModule, {

      set: {
        entryComponents: [DynamicNGBootstrapInputComponent]
      }
    });

    TestBed.configureTestingModule({

      imports: [
        FormsModule,
        ReactiveFormsModule,
        NgbModule.forRoot(),
        DynamicFormsCoreModule.forRoot(),
        SharedModule,
        TranslateModule.forRoot(),
        TextMaskModule
      ],
      providers: [DsDynamicFormControlContainerComponent, DynamicFormService],
      schemas: [CUSTOM_ELEMENTS_SCHEMA]
    }).compileComponents().then(() => {

      fixture = TestBed.createComponent(DsDynamicFormControlContainerComponent);

      component = fixture.componentInstance;
      debugElement = fixture.debugElement;
    });
  }));
github systers / systers.github.io / src / app / contributors / contributors.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [
        ContributorsComponent,
        pipe,
        GetFirstWord
      ],
      imports: [
        FormsModule,
        MDBBootstrapModule.forRoot(),
        NgbModule.forRoot()
      ]
    })
    .compileComponents();
  }));
github anjmao / ng-validators / demo / app / app.module.ts View on Github external
{ path: 'range', component: RangeExample, data: { title: 'Range' } },
    { path: 'rangeLength', component: RangeLength, data: { title: 'Range length' } },
    { path: 'url', component: Url, data: { title: 'URL' } },
    { path: 'uuid', component: Uuid, data: { title: 'UUID' } },
];

@NgModule({
    imports: [
        BrowserModule,
        CommonModule,
        FormsModule,
        ReactiveFormsModule,
        NgValidatorsModule,
        HttpClientModule,
        ChechoutFormModule,
        NgbModule.forRoot(),
        RouterModule.forRoot(
            appRoutes,
            {
                useHash: true
            }
        )
    ],
    declarations: [
        AppComponent,
        LayoutHeaderComponent,
        LayoutSidenavComponent,
        Required,
        Minlength,
        Maxlength,
        Pattern,
        Base64,
github parleycl / earlgrey / console / src / client / app / app.module.ts View on Github external
import { BrowserModule } from '@angular/platform-browser';
import { APP_BASE_HREF } from '@angular/common';
import { HttpModule } from '@angular/http';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';

import { SharedModule } from './shared/shared.module';
import { ServicesModule } from './services/services.module';
import { FeaturesModule } from './features/features.module';
import { PipesModule } from './pipes/pipes.module';

declare var BASE_LOCATION_HREF:any;

@NgModule({
  imports: [BrowserModule, HttpModule, NgbModule.forRoot(), AppRoutingModule, SharedModule.forRoot(),ServicesModule, FeaturesModule, PipesModule],
  declarations: [AppComponent],
  providers: [{
    provide: APP_BASE_HREF,
    useValue: BASE_LOCATION_HREF
  }],
  bootstrap: [AppComponent]

})
export class AppModule { 
	constructor(){
	}
}
github tidusjar / Ombi / src / Ombi / ClientApp / app / usermanagement / usermanagement.module.ts View on Github external
import { SharedModule } from "../shared/shared.module";

const routes: Routes = [
    { path: "", component: UserManagementComponent, canActivate: [AuthGuard] },
    { path: "user", component: UserManagementUserComponent, canActivate: [AuthGuard] },
    { path: "user/:id", component: UserManagementUserComponent, canActivate: [AuthGuard] },
    { path: "updatedetails", component: UpdateDetailsComponent, canActivate: [AuthGuard] },
];

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        ReactiveFormsModule,
        RouterModule.forChild(routes),
        NgbModule.forRoot(),
        MultiSelectModule,
        PipeModule,
        ConfirmDialogModule,
        TooltipModule,
        OrderModule,
        SidebarModule,
        SharedModule,
    ],
    declarations: [
        UserManagementComponent,
        UpdateDetailsComponent,
        UserManagementUserComponent,
    ],
    exports: [
        RouterModule,
    ],
github FINRAOS / herd-ui / src / app / data-objects / components / partition-filter / partition-filter.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [NgbModule.forRoot(), ReactiveFormsModule],
      declarations: [PartitionFilterComponent, FilterTemplateComponent, EllipsisOverflowComponent],
      providers: [FormBuilder]
    })
      .compileComponents();
  }));
github nimble-platform / frontend-service / src / app / simple-search / simple-search.module.ts View on Github external
import { SimpleSearchComponent } from './simple-search.component';
import { SimpleSearchFormComponent } from './simple-search-form.component';
import {SearchNavigationGuardService} from './search-navigation-guard.service';

@NgModule({
	imports: [
		CommonModule,
		AppCommonModule,
		FormsModule,
		ReactiveFormsModule,
		HttpModule,
		SimpleSearchRoutingModule,
		CatalogueModule,
		BPEModule,
		NgbModule.forRoot()
	],
	declarations: [
		SimpleSearchComponent,
		SimpleSearchFormComponent
	],
	exports: [
		SimpleSearchComponent,
		SimpleSearchFormComponent
	],
	providers: [
		SearchNavigationGuardService
	]
})

export class SimpleSearchModule {}
github DSpace / dspace-angular / src / app / app.module.ts View on Github external
}

const DEV_MODULES: any[] = [];

if (!ENV_CONFIG.production) {
  DEV_MODULES.push(StoreDevtoolsModule.instrument({ maxAge: 50 }));
}

@NgModule({
  imports: [
    CommonModule,
    HttpModule,
    RouterModule,
    AppRoutingModule,
    CoreModule.forRoot(),
    NgbModule.forRoot(),
    TranslateModule.forRoot(),
    EffectsModule.forRoot(appEffects),
    StoreModule.forRoot(appReducers),
    StoreRouterConnectingModule,
    ...DEV_MODULES
  ],
  providers: [
    {
      provide: GLOBAL_CONFIG,
      useFactory: (getConfig)
    },
    {
      provide: APP_BASE_HREF,
      useFactory: (getBase)
    },
    {
github DSpace / dspace-angular / src / app / +item-page / edit-item-page / item-status / item-status.component.spec.ts View on Github external
beforeEach(async(() => {
    TestBed.configureTestingModule({
      imports: [CommonModule, RouterTestingModule.withRoutes([]), TranslateModule.forRoot(), NgbModule.forRoot()],
      declarations: [ItemStatusComponent],
      providers: [
        { provide: Router, useValue: routerStub },
        { provide: HostWindowService, useValue: new HostWindowServiceStub(0) }
      ], schemas: [CUSTOM_ELEMENTS_SCHEMA]
    }).compileComponents();
  }));