本文整理汇总了TypeScript中ngx-bootstrap.ModalModule类的典型用法代码示例。如果您正苦于以下问题:TypeScript ModalModule类的具体用法?TypeScript ModalModule怎么用?TypeScript ModalModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ModalModule类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
LogoComponent,
NavigationSearchComponent,
StreamStatusComponent,
AppTypeComponent,
TaskStatusComponent,
RolesDirective
],
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
BrowserModule,
RouterTestingModule.withRoutes([]),
BrowserAnimationsModule,
SharedModule,
BsDropdownModule.forRoot(),
ModalModule.forRoot()
],
providers: [
{ provide: SharedAboutService, useValue: aboutService },
{ provide: AppsService, useValue: appsService },
{ provide: StreamsService, useValue: streamsService },
{ provide: TasksService, useValue: tasksService },
{ provide: AuthService, useValue: authService }
]
}).compileComponents();
}));
开发者ID:BoykoAlex,项目名称:spring-cloud-dataflow-ui,代码行数:30,代码来源:search.component.spec.ts
示例2: 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();
}));
开发者ID:BoykoAlex,项目名称:spring-cloud-dataflow-ui,代码行数:31,代码来源:app-versions.component.spec.ts
示例3: 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
示例4: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
HttpModule,
FormsModule,
ReactiveFormsModule,
ModalModule.forRoot(),
ActionModule,
CardModule,
EmptyStateModule,
FilterModule,
ListModule,
NotificationModule,
SortModule,
TableModule,
WizardModule
],
declarations: [ CreateViewsDialogComponent ],
providers: [ AppSettingsService, BsModalRef, LoggerService, NotifierService,
{ provide: ConnectionService, useClass: MockConnectionService },
{ provide: DataserviceService, useClass: MockDataserviceService },
{ provide: VdbService, useClass: MockVdbService }
]
})
.compileComponents();
}));
开发者ID:tejones,项目名称:beetle-studio,代码行数:26,代码来源:create-views-dialog.component.spec.ts
示例5: 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();
}));
开发者ID:BoykoAlex,项目名称:spring-cloud-dataflow-ui,代码行数:27,代码来源:runtime-apps.component.spec.ts
示例6: beforeEach
beforeEach(async(() => {
activeRoute = new MockActivatedRoute();
TestBed.configureTestingModule({
declarations: [
RolesDirective,
TruncatePipe,
LoaderComponent,
TaskScheduleSummaryComponent,
StreamDslComponent
],
imports: [
NgxPaginationModule,
ModalModule.forRoot(),
PopoverModule.forRoot(),
BsDropdownModule.forRoot(),
BsDatepickerModule.forRoot(),
FormsModule,
FloModule,
ReactiveFormsModule,
RouterTestingModule.withRoutes([])
],
providers: [
{ provide: SharedAboutService, useValue: aboutService },
{ provide: AuthService, useValue: authService },
{ provide: ActivatedRoute, useValue: activeRoute },
{ provide: TasksService, useValue: tasksService },
{ provide: LoggerService, useValue: loggerService },
{ provide: NotificationService, useValue: notificationService }
]
})
.compileComponents();
}));
开发者ID:BoykoAlex,项目名称:spring-cloud-dataflow-ui,代码行数:33,代码来源:task-schedule-summary.component.spec.ts
示例7: 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();
});
});
开发者ID:noahdesu,项目名称:ceph,代码行数:30,代码来源:rbd-list.component.spec.ts
示例8: beforeEach
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
StreamsDeployComponent,
DeploymentPropertiesComponent,
StreamDslComponent,
TruncatePipe
],
imports: [
FormsModule,
ModalModule.forRoot(),
ReactiveFormsModule
],
providers: [
{ provide: AuthService, useValue: authService },
{ provide: StreamsService, useValue: streamsService },
{ provide: BsModalRef, useValue: bsModalRef },
{ provide: SharedAboutService, useValue: sharedAboutService },
{ provide: NotificationService, useValue: notificationService },
{ provide: LoggerService, useValue: loggerService },
BlockerService
]
})
.compileComponents();
}));
开发者ID:BoykoAlex,项目名称:spring-cloud-dataflow-ui,代码行数:25,代码来源:streams-deploy.component.spec.ts
示例9: beforeEach
beforeEach(() => {
const configServiceStub = {
getSettings: (...params) => APP_NAME
};
TestBed.configureTestingModule({
imports: [
CoreModule.forRoot(),
SyndesisStoreModule,
SyndesisCommonModule.forRoot(),
ModalModule.forRoot(),
RouterTestingModule.withRoutes([]),
CollapseModule.forRoot(),
BsDropdownModule.forRoot(),
NotificationModule,
NgRxStoreModule.forRoot(platformReducer),
],
providers: [
ERROR_HANDLER_PROVIDERS,
ConfigService,
UserService,
TestSupportService,
NavigationService,
ApiHttpService,
{ provide: ConfigService, useValue: configServiceStub }
],
declarations: [AppComponent]
});
TestBed.compileComponents();
});
开发者ID:gnodet,项目名称:syndesis,代码行数:30,代码来源:app.component.spec.ts
示例10: 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();
}));
开发者ID:BoykoAlex,项目名称:spring-cloud-dataflow-ui,代码行数:27,代码来源:apps-add.component.spec.ts
注:本文中的ngx-bootstrap.ModalModule类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论