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

Getting value of Local storage

$
0
0

@johced wrote:

Hi! I'm trying out Ionic 2 since it's the future, I suppose.

this.local = new Storage(LocalStorage)
console.log(this.local.get('key'))

above returns a promise.

How would I simple get the value?

alert(this.local.get('key')) // it will be "[object]" as result

Posts: 7

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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