mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
21 lines
355 B
TypeScript
21 lines
355 B
TypeScript
|
|
import { Injectable } from '@angular/core';
|
||
|
|
import { Plugins } from '@capacitor/core';
|
||
|
|
|
||
|
|
const { Storage } = Plugins;
|
||
|
|
|
||
|
|
@Injectable({
|
||
|
|
providedIn: 'root'
|
||
|
|
})
|
||
|
|
export class StorageService {
|
||
|
|
|
||
|
|
constructor() {
|
||
|
|
/* async store(storageKey: String, value: any){
|
||
|
|
await Storage.set({
|
||
|
|
key: storageKey,
|
||
|
|
value: value
|
||
|
|
})
|
||
|
|
|
||
|
|
} */
|
||
|
|
}
|
||
|
|
}
|