Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
e651a9a03d32377b209bff89b04e2939d46cfef9
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: 7
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 {
41bdae96
static forRoot(httpCacheConfig: HttpCacheConfig): ModuleWithProviders<P3XHttpCacheInterceptorModule> {
248ac3a3
return { ngModule: P3XHttpCacheInterceptorModule, providers: [ { provide: P3X_HTTP_CACHE_CONFIG, useValue: httpCacheConfig } ] }; } }