UNPKG

x-ng2-http-interceptor

Version:
25 lines 962 B
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