本文整理汇总了TypeScript中ngx-bootstrap.TooltipModule.forRoot方法的典型用法代码示例。如果您正苦于以下问题:TypeScript TooltipModule.forRoot方法的具体用法?TypeScript TooltipModule.forRoot怎么用?TypeScript TooltipModule.forRoot使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ngx-bootstrap.TooltipModule
的用法示例。
在下文中一共展示了TooltipModule.forRoot方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: beforeEach
beforeEach(async(() => {
activeRoute = new MockActivatedRoute();
TestBed.configureTestingModule({
declarations: [
RolesDirective,
TaskExecutionComponent,
DataflowDateTimePipe,
DataflowDurationPipe,
LoaderComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST,
PagerComponent
],
imports: [
FormsModule,
ReactiveFormsModule,
NgxPaginationModule,
BsDropdownModule.forRoot(),
TooltipModule.forRoot(),
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: SharedAboutService, useValue: aboutService },
{ provide: AuthService, useValue: authService },
{ provide: TasksService, useValue: tasksService },
{ provide: RoutingStateService, useValue: routingStateService },
{ provide: ActivatedRoute, useValue: activeRoute },
{ provide: NotificationService, useValue: notificationService }
]
})
.compileComponents();
}));
示例2: beforeEach
beforeEach( async(() => {
activeRoute = new MockActivatedRoute();
TestBed.configureTestingModule({
imports: [
RouterTestingModule.withRoutes([]),
ClipboardModule,
BsDropdownModule.forRoot(),
ReactiveFormsModule,
TooltipModule.forRoot(),
FormsModule,
NgxPaginationModule,
],
declarations: [
AboutComponent,
AboutDetailsComponent,
LoaderComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST,
PagerComponent,
],
providers: [
{ provide: AboutService, useValue: aboutService },
{ provide: NotificationService, useValue: notificationService },
{ provide: ActivatedRoute, useValue: activeRoute }
]
})
.compileComponents();
}));
示例3: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
StreamDeployFreeTextComponent,
PagerComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST,
LoaderComponent,
AppTypeComponent,
FocusDirective
],
imports: [
FormsModule,
ReactiveFormsModule,
TooltipModule.forRoot(),
ModalModule.forRoot(),
BsDropdownModule.forRoot(),
NgxPaginationModule
],
providers: [
{ provide: StreamsService, useValue: streamsService },
{ provide: SharedAboutService, useValue: sharedAboutService },
{ provide: NotificationService, useValue: notificationService },
{ provide: StreamDeployService, useValue: streamDeployService },
{ provide: LoggerService, useValue: loggerService }
]
})
.compileComponents();
}));
示例4: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
RuntimeAppsComponent,
RuntimeAppStateComponent,
LoaderComponent,
PagerComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST
],
imports: [
FormsModule,
NgxPaginationModule,
BsDropdownModule.forRoot(),
TooltipModule.forRoot(),
ModalModule.forRoot()
],
providers: [
{ provide: SharedAboutService, useValue: sharedAboutService },
{ provide: RuntimeAppsService, useValue: runtimeAppsService },
BsModalService,
{ provide: NotificationService, useValue: notificationService },
GrafanaService
]
})
.compileComponents();
}));
示例5: describe
describe('RbdListComponent', () => {
let component: RbdListComponent;
let fixture: ComponentFixture<RbdListComponent>;
configureTestBed({
imports: [
SharedModule,
BsDropdownModule.forRoot(),
TabsModule.forRoot(),
ModalModule.forRoot(),
TooltipModule.forRoot(),
ToastModule.forRoot(),
AlertModule.forRoot(),
ComponentsModule,
RouterTestingModule,
HttpClientTestingModule
],
declarations: [RbdListComponent, RbdDetailsComponent, RbdSnapshotListComponent]
});
beforeEach(() => {
fixture = TestBed.createComponent(RbdListComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
示例6: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ RbdDetailsComponent, RbdSnapshotListComponent ],
imports: [ SharedModule, TabsModule.forRoot(), TooltipModule.forRoot(), ]
})
.compileComponents();
}));
示例7: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppsAddComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST,
PagerComponent
],
imports: [
ModalModule.forRoot(),
PopoverModule.forRoot(),
ReactiveFormsModule,
FormsModule,
NgxPaginationModule,
BsDropdownModule.forRoot(),
TooltipModule.forRoot(),
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: AppsService, useValue: appsService },
{ provide: RoutingStateService, useValue: routingStateService },
{ provide: BsModalRef, useValue: bsModalRef },
{ provide: NotificationService, useValue: notificationService }
]
})
.compileComponents();
}));
示例8: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
TaskDefinitionsDestroyComponent,
StreamDslComponent,
TruncatePipe,
RolesDirective
],
imports: [
FormsModule,
ModalModule.forRoot(),
TooltipModule.forRoot(),
ReactiveFormsModule,
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: AuthService, useValue: authService },
{ provide: BsModalRef, useValue: bsModalRef },
{ provide: NotificationService, useValue: notificationService },
{ provide: TasksService, useValue: tasksService },
{ provide: LoggerService, useValue: loggerService },
BlockerService
]
}).compileComponents();
}));
开发者ID:BoykoAlex,项目名称:spring-cloud-dataflow-ui,代码行数:25,代码来源:task-definitions-destroy.component.spec.ts
示例9: beforeEach
beforeEach(async(() => {
jobsService = new MockJobsService();
activeRoute = new MockActivatedRoute();
TestBed.configureTestingModule({
declarations: [
JobExecutionDetailsComponent,
JobExecutionStatusComponent,
DataflowDateTimePipe,
DataflowDurationPipe,
LoaderComponent,
PagerComponent,
DATAFLOW_PAGE,
DATAFLOW_LIST
],
imports: [
FormsModule,
NgxPaginationModule,
BsDropdownModule.forRoot(),
TooltipModule.forRoot(),
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: JobsService, useValue: jobsService },
{ provide: ActivatedRoute, useValue: activeRoute },
{ provide: RoutingStateService, useValue: routingStateService },
{ provide: NotificationService, useValue: notificationService },
{ provide: LoggerService, useValue: loggerService }
]
})
.compileComponents();
}));
示例10: beforeEach
beforeEach(async(() => {
activeRoute = new MockActivatedRoute();
TestBed.configureTestingModule({
declarations: [
AppVersionsComponent,
AppTypeComponent,
AppVersionLabelComponent,
SortComponent,
OrderByPipe,
RolesDirective,
LoaderComponent
],
imports: [
ModalModule.forRoot(),
TooltipModule.forRoot(),
ReactiveFormsModule,
FormsModule,
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: AppsService, useValue: appsService },
{ provide: AuthService, useValue: authService },
{ provide: ConfirmService, useValue: confirmService },
{ provide: BsModalRef, useValue: bsModalRef },
{ provide: SharedAboutService, useValue: sharedAboutService },
{ provide: NotificationService, useValue: notificationService },
{ provide: LoggerService, useValue: loggerService }
]
})
.compileComponents();
}));