ng2-http
Demo
https://hboylan.github.io/ng2-http/demo
Table of contents
About
Angular2 HttpModule wrapper with decorators and interceptors
Based the source code from this repo.
Installation
Install through yarn:
yarn add ng2-http
Install through npm:
npm install --save ng2-http
Then use it in your app like so:
// demo.module.ts;;;;;
// demo.service.ts;;;;
// demo.component.ts;;
Documentation
All documentation is auto-generated from the source via typedoc and can be viewed here: https://hboylan.github.io/ng2-http/docs/
Development
Prepare your environment
- Install Node.js and NPM (should come with)
- Install local dev dependencies:
npm install
while current directory is this repo
Development server
Run npm start
to start a development server on port 8000 with auto reload + tests.
Testing
Run npm test
to run tests once or npm run test:watch
to continually run tests.
Release
- Bump the version in package.json (experts only)
npm run release
License
MIT