本文整理汇总了TypeScript中@ng-bootstrap/ng-bootstrap.NgbModule.forRoot方法的典型用法代码示例。如果您正苦于以下问题:TypeScript NgbModule.forRoot方法的具体用法?TypeScript NgbModule.forRoot怎么用?TypeScript NgbModule.forRoot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@ng-bootstrap/ng-bootstrap.NgbModule
的用法示例。
在下文中一共展示了NgbModule.forRoot方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: beforeEach
beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [ProjectListComponent],
imports: [NgbModule.forRoot(), FormsModule, HttpModule, RouterTestingModule],
providers: [{ provide: ProjectService, useClass: mockService }]
}).compileComponents();
})
示例2: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule,
FormsModule,
ReactiveFormsModule,
NgbModule.forRoot(),
PageHeaderModule
],
declarations: [
BsComponentComponent,
ButtonsComponent,
AlertComponent,
ModalComponent,
CollapseComponent,
DatePickerComponent,
DropdownComponent,
PaginationComponent,
PopOverComponent,
ProgressbarComponent,
TabsComponent,
TooltipComponent,
TimepickerComponent
]
})
.compileComponents();
}));
示例3: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ UserAddComponent ],
imports:[NgbModule.forRoot(), FormsModule, RouterTestingModule, HttpModule]
})
.compileComponents();
}));
示例4: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
PlayersListComponent
],
imports: [
HttpClientTestingModule,
NgbModule.forRoot(),
ReactiveFormsModule,
RouterTestingModule
],
providers: [
{
provide: ActivatedRoute,
useValue: {
snapshot: {
paramMap: convertToParamMap({
groupName: 'Under 10',
yearOfBirth: '2008'
})
}
}
},
NgbModal,
PlayersService
]
})
.compileComponents();
}));
示例5: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ DashboardComponent ],
imports:[NgbModule.forRoot(), RouterTestingModule]
})
.compileComponents();
}));
示例6: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [NgbModule.forRoot()],
declarations: [CountdownComponent]
})
.compileComponents();
}));
示例7: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
ManageCoachesComponent,
CoachPopupComponent
],
imports: [
HttpClientTestingModule,
ReactiveFormsModule,
NgbModule.forRoot(),
ToasterModule.forRoot(),
SharedModule
],
providers: [
CoachesService,
AuthorizationService,
ValidationService,
ToasterService,
NgbActiveModal
],
schemas: [
NO_ERRORS_SCHEMA
]
})
.compileComponents();
}));
示例8: beforeEach
beforeEach(async () => {
TestBed.configureTestingModule({
declarations: [KnowledgebaseComponent, OrderBy, StartsWithPipe],
imports: [NgbModule.forRoot(), FormsModule, HttpModule],
providers: [{ provide: KnowledgebaseService, useClass: mockService }]
}).compileComponents();
})
示例9: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
HttpModule,
NgbModule.forRoot(),
NgxDatatableModule,
JwtModule.forRoot({
config: {
tokenGetter: jwtTokenGetter,
blacklistedRoutes: ['/login', '/api/auth', '/api/auth/logout', '/api/auth/refresh']
}
}),
ToastrModule.forRoot({ positionClass: 'toast-bottom-right' })
// FormsModule,
// ReactiveFormsModule,
],
declarations: [DevicesComponent],
schemas: [NO_ERRORS_SCHEMA],
providers: [DevicesService, JwtInterceptor,
// Providing JwtInterceptor allow to inject JwtInterceptor manually into RefreshTokenInterceptor
{
provide: HTTP_INTERCEPTORS,
useExisting: JwtInterceptor,
multi: true
},
{
provide: HTTP_INTERCEPTORS,
useClass: RefreshTokenInterceptor,
multi: true
}],
})
.compileComponents();
}));
示例10: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [SharedModule, NgbModule.forRoot(), CopyableModule],
declarations: [InfoItemComponent]
})
.compileComponents();
}));