storage.get multiple keys
See original GitHub issueWould be nice to have a get for multiple keys like in NG2-Translate
this.storage.get(['someKey', 'anotherKey'])
.then((data) => {
console.log(`${data.someKey}, ${data.anotherKey}`)
})
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Getting multiple key values from Ionic2 storage
I used Promise.all for this purpose. Promise.all([this.storage.get("email"), this.storage.get("username")]).then(values ...
Read more >Storage.key() - Web APIs - MDN Web Docs
The key() method of the Storage interface, when passed a number n, returns the name of the nth key in a given Storage...
Read more >Get multiple values at same time using Ionic Storage
Hello, I used Ionic Storage. I saved this data: this.storage.set('key1', 'value1'); this.storage.set('key2', 'value2'); How I can get all ...
Read more >how to access multiple keys from chrome extension's ...
I have 2 input textbox for username and password. And one picklist for some value. Now I want a user to add these...
Read more >How to Get HTML5 Local Storage Keys with JavaScript?
Another way to get all the keys of the items stored in local storage is to use the localStorage.key method. We can use...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This can be easily implemented in userland:
I accomplished it like this: