Storage set then get

Hello !
I have a problem with the storage module. If i’m doing the next things in IonWillEnter
this.storage.set(‘test’,true);
this.storage.get(‘test’).then((val) => {
console.log(‘test val is :’, val);
}

It will display test val is null. Why ?
Thanks by advance


this might be helpful

1 Like