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