How to use the @angular/http.Http function in @angular/http

To help you get started, we’ve selected a few @angular/http examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github fabric8-ui / fabric8-ui / src / a-runtime-console / kubernetes / ui / build / list-page / list-page.build.spec.ts View on Github external
provide: Http, useFactory: (backend, options) => {
            return new Http(backend, options);
          }, deps: [MockBackend, RequestOptions]
        }
github isaacplmann / ngrx-query / src / lib / services / effects.service.spec.ts View on Github external
export function httpFactory(backend, options): Http {
  return new Http(backend, options);
}
github Innqube / ng2-iq-select2 / projects / ng2-iq-select2 / src / lib / iq-select2-template / iq-select2-template.directive.spec.ts View on Github external
useFactory: (mockBackend, options) => {
                        return new Http(mockBackend, options);
                    },
                    deps: [MockBackend, BaseRequestOptions]
github plone / plone.restapi-angular / src / component.service.spec.ts View on Github external
useFactory: (backend: MockBackend, defaultOptions: BaseRequestOptions) => {
            return new Http(backend, defaultOptions);
          },
          deps: [MockBackend, BaseRequestOptions],
github pluralsight-projects / Angular-AlbumStoreProductPage / src / spec / part4 / product-tracklisting-ngoninit-calls-getalbum.projects.spec.ts View on Github external
useFactory: (mockBackend: MockBackend, defaultOptions: RequestOptions) => {
            return new Http(mockBackend, defaultOptions);
          },
          useClass: Http,
github bulktrade / SMSC / modules / admin / src / app / example / home / home.spec.ts View on Github external
useFactory: function(backend, defaultOptions) {
        return new Http(backend, defaultOptions);
      },
      deps: [MockBackend, BaseRequestOptions]
github fabric8-ui / fabric8-ui / src / a-runtime-console / kubernetes / ui / namespace / view-wrapper / view-wrapper.namespace.spec.ts View on Github external
provide: Http, useFactory: (backend, options) => {
              return new Http(backend, options);
            }, deps: [MockBackend, RequestOptions]
          }
github fossasia / susper.com / src / app / services / knowledgeapi.service.spec.ts View on Github external
useFactory: (backend: MockBackend, options: BaseRequestOptions) => {
    return new Http(backend, options);
  }
};
github deeleman / learning-angular2 / chapter_10 / app / timer / timer-widget.component.spec.ts View on Github external
useFactory: (backend: MockBackend, options: BaseRequestOptions) => {
        return new Http(backend, options);
      },
      deps: [MockBackend, BaseRequestOptions]
github ecsnavarretemit / sarai-interactive-maps / src / app / map / pages / ndvi-maps / ndvi-map.service.spec.ts View on Github external
useFactory: (backendInstance: MockBackend, defaultOptions: BaseRequestOptions) => {
            return new Http(backendInstance, defaultOptions);
          }
        },