Ajout d'un cache sur les appels vers les
données de type "référentiel"
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { HttpHeaders } from '@angular/common/http';
|
||||
|
||||
import { ConfigurationHelper } from './configuration-helper';
|
||||
import { ServiceRefData } from './service-ref-data.service';
|
||||
|
||||
export class BaseService {
|
||||
protected headers: HttpHeaders;
|
||||
protected apiUrl: string;
|
||||
protected serviceRefData : ServiceRefData;
|
||||
|
||||
constructor() {
|
||||
ConfigurationHelper.settings.subscribe(settings =>
|
||||
@@ -18,5 +20,7 @@ export class BaseService {
|
||||
this.apiUrl = tmpApiUrl + '/api';
|
||||
}
|
||||
});
|
||||
|
||||
this.serviceRefData = new ServiceRefData();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user