本文整理匯總了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();
}));