當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ngx-restangular.RestangularModule類代碼示例

本文整理匯總了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();
 })
開發者ID:hawtio,項目名稱:hawtio-ipaas,代碼行數:28,代碼來源:list-page.component.spec.ts

示例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();
 })
開發者ID:hawtio,項目名稱:hawtio-ipaas,代碼行數:34,代碼來源:dashboard.component.spec.ts

示例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();
 })
開發者ID:hawtio,項目名稱:hawtio-ipaas,代碼行數:26,代碼來源:list-page.component.spec.ts

示例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();
 })
開發者ID:hawtio,項目名稱:hawtio-ipaas,代碼行數:39,代碼來源:edit-page.component.spec.ts

示例5: beforeEach

 beforeEach(() => {
   TestBed.configureTestingModule({
     imports: [RestangularModule.forRoot()],
     providers: [UserService]
   });
 });
開發者ID:hawtio,項目名稱:hawtio-ipaas,代碼行數:6,代碼來源:user.service.spec.ts


注:本文中的ngx-restangular.RestangularModule類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。