Skip to content

Instantly share code, notes, and snippets.

View sample angular http wrapper
import { Observable } from 'rxjs';
import { Injectable, Inject } from '@angular/core';
import { Response } from '@angular/http';
import { HttpClient, HttpParams, HttpErrorResponse } from '@angular/common/http';
import { map, catchError } from 'rxjs/operators';
import { throwError } from 'rxjs';
import { MyConfigService } from './my-config.service';