the import for storage is:
import { Storage } from '@ionic/storage';
npm install --save @ionic/storage
In app.module.ts
import { IonicStorageModule } from '@ionic/storage';
imports: [
...,
IonicStorageModule.forRoot()
],
Then in your home.ts
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);
});
}
You will find it under IndexedDB