How to use multiple storage.get value


#1

I can set as storage value

this.storage.set('full_name', data.full_name);
this.storage.set('age', data.age);

but how to use these two storage value using storage.get

this.storage.get('full_name').then((full_name) => {
		this.resp = full_name;
		console.log(this.resp);
	})

i can use this for one value not multiple.
this does not help me.

I have to use these multiple value for passing to “http.get()”.
If any working Examples?
Thanks in advanced.


#2

You could do

Promise.all([this.storage.get("a"), this.storage.get("b")]).then(values => {
      console.log("a", values[0]);
      console.log("b", values[1]);
});

#3

Thank you very much :heart: