Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

How to replace existing key values with new one in ionic local storage

$
0
0

@shere169 wrote:

this.storage.get('current').then(token => {
 this.presentAlert('Existing Current data',JSON.stringify(token));
 this.storage.set('current',this.data);

I wanna replace the existing current values with new data. But storage.set is not replacing it.
Should i use storage.remove() ? to first remove the existing values and then add new by setting it again?
What is the best way?
Thank you.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>