@akashpal wrote:
import { Storage } from '@ionic/storage'; export class MyApp { constructor(private storage: Storage) { } ... // set a key/value storage.set('name', 'Max'); // Or to get a key/value pair storage.get('age').then((val) => { console.log('Your age is', val); }); }
Needs to be :
import { Storage } from '@ionic/storage'; export class MyApp { constructor(private storage: Storage) { } ... // set a key/value this.storage.set('name', 'Max'); // Or to get a key/value pair this.storage.get('age').then((val) => { console.log('Your age is', val); }); }
Posts: 1
Participants: 1