You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

23 lines
524 B

import { Injectable } from '@angular/core';
export const RANGE = 'range';
export const STAY_SIGNED_IN = 'staySignedIn';
@Injectable({
providedIn: 'root'
})
export class SettingsStorageService {
public constructor() {}
public getSetting(aKey: string): string {
return window.localStorage.getItem(aKey);
}
public setSetting(aKey: string, aValue: string) {
window.localStorage.setItem(aKey, aValue);
}
public removeSetting(aKey: string): void {
return window.localStorage.removeItem(aKey);
}
}