Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
4fe426022bef90ff5d55dc14cb6b21e96081840a
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 } ] }; } }