Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
ef69079c12d7385b20810ea0b694b36a57393f48
Branches
dependabot/npm_and_yarn/multi-d54fdff7c2
dependabot/npm_and_yarn/nanoid-3.3.8
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 } ] }; } }