Angular2 REST Client
Angular2 REST Client inpsired by angular2-rest
Tooling inspired by angular2-webpack-starter
Installation
npm install angular2-rest-client --save
/ yarn add angular2-rest-client --save
Uses deprecated @angular/http
. Won't support @angular/common/http
until it's stable and better documented.
Example
// add base url from string// add base url from json file// add base url from function// be sure to declare the function non-arrow style to have correct scope of this// only one of these per class // add some general headers // add custom error handler // you probably want to make this injectable // needst to extend AbstractApiClient
License
MIT