Skip to content

Commit e868a90

Browse files
committed
feat: provide NgHttpCachingService in root injector
1 parent 53f14f8 commit e868a90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/ng-http-caching/src/lib/ng-http-caching.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export const NgHttpCachingConfigDefault: Readonly<NgHttpCachingDefaultConfig> =
180180
checkResponseHeaders: false
181181
};
182182

183-
@Injectable()
183+
@Injectable({ providedIn: 'root' })
184184
export class NgHttpCachingService {
185185

186186
private readonly queue = new Map<string, Observable<HttpEvent<any>>>();

0 commit comments

Comments
 (0)