angular2-http-node_backend
v0.0.1
Published
Angular2 Http ConnectionBackend for node
Downloads
6
Maintainers
Readme
NodeBackend for Angular2
Now you can make ajax requests on node.
Setup
Install the package
$ npm install --save angular2-http-node_backendProvide a custom
Httpinstance which usesNodeBackendimport { 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]}) ])Profit
