Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 9a23976

Browse files
committed
feat(ConfigHelper)
1 parent c53f021 commit 9a23976

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/config/config.helper.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { WebStorageUtilityClass } from '../utility/webstorage-utility.class';
2+
3+
export class ConfigHelper {
4+
protected static _webStorageUtility: WebStorageUtilityClass = new WebStorageUtilityClass('NGX-STORE_');
5+
6+
public static getItem(key: string): any {
7+
return this._webStorageUtility.get(localStorage, key);
8+
}
9+
10+
public static setItem(key: string, item: any): any {
11+
return this._webStorageUtility.set(localStorage, key, item);
12+
}
13+
}

0 commit comments

Comments
 (0)