本文整理汇总了TypeScript中@ng-bootstrap/ng-bootstrap.NgbModule类的典型用法代码示例。如果您正苦于以下问题:TypeScript NgbModule类的具体用法?TypeScript NgbModule怎么用?TypeScript NgbModule使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了NgbModule类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
NgbModule.forRoot()
],
declarations: [ ModalComponent ]
})
.compileComponents();
}));
示例2: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ChampionSuggestionComponent, SuggestionContextComponent, AppChampionImageMockComponent],
imports: [NgbModule.forRoot()],
providers: [{ provide: StaticDataService, useClass: MockStaticDataService }]
})
.compileComponents();
}));
示例3: beforeEach
beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [ProjectDashboardComponent, OrderBy, StartsWithPipe],
imports: [NgbModule.forRoot(), FormsModule, HttpModule, RouterTestingModule],
providers: [
SprintService
],
}).compileComponents();
})
示例4: beforeEach
beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [UserManageComponent, OrderBy, StartsWithPipe],
imports: [NgbModule.forRoot(), FormsModule, HttpModule, RouterTestingModule],
providers: [{ provide: UserService, useClass: mocker }]
}).compileComponents();
})
示例5: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [NgbModule.forRoot(), ReactiveFormsModule],
declarations: [TeamBuilderComponent, AppChampionImageMockComponent, AppSuggestionContextMockComponent,
AppChampionSuggestionGroupMockComponent, MockChampionSearchPipe, AppLoadingSpinnerMockComponent],
providers: [{ provide: StaticDataService, useClass: MockStaticDataService },
{ provide: TeamBuilderService, useClass: MockTeamBuilderService }]
})
.compileComponents();
}));
示例6: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
FormsModule,
NgbModule.forRoot()
],
declarations: [ DatePickerComponent ]
})
.compileComponents();
}));
示例7: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
TranslateModule.forRoot(),
NgbModule.forRoot(),
CoreModule
]
})
.compileComponents();
}));
示例8: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
NgbModule.forRoot(),
],
declarations: [
AppComponent
],
}).compileComponents();
}));
示例9: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
NgbModule.forRoot(),
RouterTestingModule,
TranslateModule.forRoot(),
ReactiveFormsModule,
CoreModule
],
declarations: [LoginComponent]
})
.compileComponents();
}));
示例10: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
//HttpModule,
NgbModule.forRoot(),
ToastrModule.forRoot({ positionClass: 'toast-bottom-right' }),
],
declarations: [MainComponent],
schemas: [NO_ERRORS_SCHEMA],
providers: [MainService],
})
.compileComponents();
}));