Hai, I am creating an ionic App. I am using IonicStorageModule. I need to rename the database Name.
For that I can use import { IonicStorageModule } from ‘@ionic/storage’;
@NgModule({
declarations: […],
imports: [
IonicStorageModule.forRoot({
name: ‘__mydb’,
driverOrder: [‘indexeddb’, ‘sqlite’, ‘websql’]
})
],
bootstrap: […],
entryComponents: […],
providers: […]
})
export class AppModule { }
In this, Instead of name: ‘__mydb’ I want name : sessionStorage[‘key’]. But for the first time i am getting value Undefined.Once i reload the page I am getting actual value. Any Solution ? Thanks in Advance