angular2-http-node_backend

An angular2 Http backend for node

Showing:

Popularity

Downloads/wk

1

GitHub Stars

2

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

4

Size (min+gzip)

3.7KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

NodeBackend for Angular2

Now you can make ajax requests on node.

Setup

  1. Install the package

    $ npm install --save angular2-http-node_backend
    
  1. Provide a custom Http instance which uses NodeBackend

    import { NodeBackend } from 'angular2-http-node_backend';
    
    bootstrap(App, [
      HTTP_PROVIDERS,
      provide(NodeBackend, { useFactory: (respOpt) => new NodeBackend(respOpt), deps: [ResponseOptions]}),
      provide(Http, {useFactory: (backend, options) => {
        return new Http(backend, options);
      }, deps: [NodeBackend, RequestOptions]})
    ])
        
    
  2. Profit

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100