angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 232 forks source link

feat: support HttpClient and add tests #130

Closed wardbell closed 7 years ago

wardbell commented 7 years ago

Three phases

  1. Add tests of existing code before adding Angular HttpClient support
  2. Catch up on important outstanding PRs and issues against current code.
  3. Add HttpClient

Phases 1 & 2 are in the first commit

Phase 3 is in the 2nd and 3rd commits (kept separate because of the significant refactoring in the 2nd commit).

damsorian commented 7 years ago

Nice! What is the approximate release date?

wardbell commented 7 years ago

Merging and releasing now!

wardbell commented 7 years ago

Critical if you upgrade to this version and you're using SystemJS you must tell it about the location of the HttpClient module's umd.js file for @angular/common/http which is at

      '@angular/common/http': 'npm:@angular/common/bundles/common-http.umd.js',

Otherwise, you'll get a 404 when it tries to load the HttpClientModule WHICH IT WILL EVEN IF YOU ARE STICKING WITH Http