x-ng2-http-interceptor
Version:
Adds interception capability around angular http api
25 lines • 962 B
JavaScript
import { ConnectionBackend, RequestOptions } from '@angular/http';
import { NgModule } from '@angular/core';
import { InterceptorService } from './interceptor-service';
export function provideInterceptorService(backend, defaultOptions) {
return new InterceptorService(backend, defaultOptions);
}
export var InterceptorModule = (function () {
function InterceptorModule() {
}
InterceptorModule.decorators = [
{ type: NgModule, args: [{
providers: [
{
provide: InterceptorService,
useFactory: provideInterceptorService,
deps: [ConnectionBackend, RequestOptions]
}
]
},] },
];
/** @nocollapse */
InterceptorModule.ctorParameters = function () { return []; };
return InterceptorModule;
}());
//# sourceMappingURL=interceptor.module.js.map