argos/dmp-frontend/src/app/services/global-variables.service.ts

30 lines
585 B
TypeScript
Raw Normal View History

2017-11-07 15:03:51 +01:00
import { Injectable, Inject} from '@angular/core';
import { Observable } from 'rxjs';
import {LocalStorageService} from 'ngx-webstorage';
import 'rxjs/add/operator/map';
import { DOCUMENT } from '@angular/platform-browser';
@Injectable()
export class GlobalVariables {
constructor (private storage : LocalStorageService, @Inject(DOCUMENT) private document) {
}
2017-11-10 15:35:58 +01:00
getFormHasPaging() : boolean{
return this.storage.retrieve('form-paging-flag');
}
setFormHasPaging(formHasPaging : boolean){
this.storage.store('form-paging-flag',formHasPaging);
}
2017-11-07 15:03:51 +01:00
}