@nepwork/dashboards
Version:
Dashboards for emergencies and monitoring
19 lines (12 loc) • 365 B
text/typescript
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
export type CacheStream = Observable<Array<Object>>;
({
providedIn: 'root'
})
export class CacheService {
private caches: CacheStream;
constructor() { }
set cache(cache: CacheStream) { this.caches = cache; }
get cache(): CacheStream { return this.caches; }
}