本文整理匯總了TypeScript中ngx-restangular.RestangularModule類的典型用法代碼示例。如果您正苦於以下問題:TypeScript RestangularModule類的具體用法?TypeScript RestangularModule怎麽用?TypeScript RestangularModule使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了RestangularModule類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: async
async(() => {
TestBed.configureTestingModule({
imports: [
SyndesisCommonModule.forRoot(),
StoreModule,
RouterTestingModule.withRoutes([]),
RestangularModule.forRoot(),
ModalModule.forRoot(),
TooltipModule.forRoot(),
TabsModule.forRoot(),
NotificationModule,
PatternflyUIModule,
IntegrationsListModule
],
declarations: [IntegrationsListPage],
providers: [
MockBackend,
{ provide: RequestOptions, useClass: BaseRequestOptions },
{
provide: Http,
useFactory: (backend, options) => {
return new Http(backend, options);
},
deps: [MockBackend, RequestOptions]
}
]
}).compileComponents();
})
示例2: async
async(() => {
TestBed.configureTestingModule({
imports: [
SyndesisCommonModule.forRoot(),
ChartsModule,
ModalModule.forRoot(),
TooltipModule.forRoot(),
BsDropdownModule.forRoot(),
StoreModule,
RouterTestingModule.withRoutes([]),
RestangularModule.forRoot(),
NotificationModule,
IntegrationsListModule
],
declarations: [
DashboardComponent,
EmptyStateComponent,
DashboardConnectionsComponent,
DashboardIntegrationsComponent
],
providers: [
MockBackend,
{ provide: RequestOptions, useClass: BaseRequestOptions },
{
provide: Http,
useFactory: (backend, options) => {
return new Http(backend, options);
},
deps: [MockBackend, RequestOptions]
},
TourService
]
}).compileComponents();
})
示例3: async
async(() => {
TestBed.configureTestingModule({
imports: [
SyndesisCommonModule.forRoot(),
StoreModule,
RestangularModule.forRoot(),
RouterTestingModule.withRoutes([])
],
declarations: [
TemplatesListPage,
ListToolbarComponent,
TemplatesListComponent
],
providers: [
MockBackend,
{ provide: RequestOptions, useClass: BaseRequestOptions },
{
provide: Http,
useFactory: (backend, options) => {
return new Http(backend, options);
},
deps: [MockBackend, RequestOptions]
}
]
}).compileComponents();
})
示例4: async
async(() => {
TestBed.configureTestingModule({
imports: [
CollapseModule,
CommonModule,
FormsModule,
SyndesisCommonModule,
ModalModule,
RestangularModule.forRoot(),
RouterTestingModule.withRoutes([]),
PopoverModule.forRoot(),
CollapseModule.forRoot(),
StoreModule,
ToolbarModule
],
declarations: [
IntegrationsEditPage,
ConnectionsListComponent,
FlowViewComponent,
FlowViewStepComponent
],
providers: [
MockBackend,
{
provide: RequestOptions,
useClass: BaseRequestOptions
},
{
provide: Http,
useFactory: (backend, options) => {
return new Http(backend, options);
},
deps: [MockBackend, RequestOptions]
},
NavigationService,
CurrentFlow
]
}).compileComponents();
})
示例5: beforeEach
beforeEach(() => {
TestBed.configureTestingModule({
imports: [RestangularModule.forRoot()],
providers: [UserService]
});
});