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

Store objects in LocalStorage

$
0
0

@iborik wrote:

Hello,

this.local.set('user', user);

I try to store an object in local storage and it doesn't work.

I have a string when I get it back further in the code :

console.log(this.local.get('user'));
OUTPUT => "[object Object]"

Is there something to do before to store an object ?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 70612

Trending Articles



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