Sunday 20 June 2021

Ionic Storage

Store key for ionic async this.storage.get 


  You can't store object in storage.set() but you can do this:
  
  this.storage.set('key'JSON.stringify(value));
  and then get it:
  
  this.storage.get('key').then((value) => {
      let json_value = JSON.parse(value);

 }); 

No comments:

Post a Comment