Skip to content

Commit

Permalink
feat: make injectionTokens publicly available
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveVanOpstal committed Feb 26, 2018
1 parent 516a93d commit 0ed9026
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cache/cache.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ import {CACHE_INTERCEPTOR_PROVIDER, MAX_AGE_MS} from './cache.interceptor';

@NgModule()
export class CacheInterceptorModule {
/**
* maxAgeMs InjectionToken
*/
static maxAgeMs = MAX_AGE_MS;

/**
* Cache all HTTP `GET` requests.
*/
Expand Down
5 changes: 5 additions & 0 deletions src/prefix-url/prefix-url.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import {PREFIX, PREFIX_URL_INTERCEPTOR_PROVIDER} from './prefix-url.interceptor'

@NgModule()
export class PrefixUrlInterceptorModule {
/**
* Prefix InjectionToken
*/
static prefix = PREFIX;

/**
* Prefix HTTP request urls.
*/
Expand Down

0 comments on commit 0ed9026

Please sign in to comment.