Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
583fe5969d4ca0d086ea4a1913977a0e1184e5db
Branches
master
Files
Commits
Log
Graph
Stats
angular-http-cache-interceptor.git
projects
angular-http-cache-interceptor
src
lib
http-cache-interceptor.module.ts
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 5
Mode: application/typescript
Binary: false
Hang on, we reloading big blames...
248ac3a3
import {ModuleWithProviders, NgModule} from '@angular/core';
5ff05266
import {HTTP_INTERCEPTORS} from "@angular/common/http"; import { HttpCacheInterceptorInterceptor } from './http-cache-interceptor.interceptor'
248ac3a3
import { P3X_HTTP_CACHE_CONFIG } from "./http-cache-config.token"; import { HttpCacheConfig } from "./http-cache-config";
5ff05266
@NgModule({ declarations: [], imports: [ ], providers: [ { provide: HTTP_INTERCEPTORS, useClass: HttpCacheInterceptorInterceptor, multi: true } ], exports: [] })
248ac3a3
export class P3XHttpCacheInterceptorModule { static forRoot(httpCacheConfig: HttpCacheConfig): ModuleWithProviders { return { ngModule: P3XHttpCacheInterceptorModule, providers: [ { provide: P3X_HTTP_CACHE_CONFIG, useValue: httpCacheConfig } ] }; } }